Commit ecc9f09e authored by Gabriel Monnerat's avatar Gabriel Monnerat

Rename scripts to make egg use more clear. thanks luke

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@37906 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 316d3f3b
......@@ -36,7 +36,7 @@ from types import InstanceType
__doc__ = """
usage: unomimemapper.py [options]
usage: unomimemapper [options]
Options:
-h, --help this help screen
......
......@@ -79,11 +79,11 @@ def application(global_config, **local_config):
cloudooo_resources = pkg_resources.get_distribution('cloudooo')
console_scripts = cloudooo_resources.get_entry_map()['console_scripts']
unomimemapper_bin = path.join(path.dirname(executable),
console_scripts["unomimemapper.py"].name)
console_scripts["unomimemapper"].name)
unoconverter_bin = path.join(path.dirname(executable),
console_scripts["unoconverter.py"].name)
console_scripts["unoconverter"].name)
openoffice_tester_bin = path.join(path.dirname(executable),
console_scripts["openoffice_tester.py"].name)
console_scripts["openoffice_tester"].name)
# The Xvfb will run in the same local of the OpenOffice
application_hostname = local_config.get('application_hostname')
......
......@@ -104,7 +104,7 @@ class MimeMapper(object):
bad_flag_list = [65, 94217, 536641, 1572929, 268959937, 524373, 85, 524353]
self.python_path = kw.get("python_path", "python")
self.unomimemapper_bin = kw.get("unomimemapper_bin",
"/usr/bin/unomimemapper.py")
"/usr/bin/unomimemapper")
uno_path = kw.get("uno_path", environ.get('uno_path'))
office_bin_path = kw.get("office_bin_path", environ.get('office_bin_path'))
command = [python_path
......
......@@ -53,11 +53,11 @@ def extract_cloudooo_script():
console_scripts = cloudooo_resources.get_entry_map()['console_scripts']
openoffice_tester_bin_path = path.join(path.dirname(executable),
console_scripts["openoffice_tester.py"].name)
console_scripts["openoffice_tester"].name)
unomimemapper_bin_path = path.join(path.dirname(executable),
console_scripts["unomimemapper.py"].name)
console_scripts["unomimemapper"].name)
unoconverter_bin_path = path.join(path.dirname(executable),
console_scripts["unoconverter.py"].name)
console_scripts["unoconverter"].name)
return dict(unoconverter_bin=unoconverter_bin_path,
unomimemapper_bin=unomimemapper_bin_path,
......
......@@ -192,7 +192,7 @@ class TestMimeMapper(cloudoooTestCase):
try:
mimemapper.loadFilterList(hostname, port)
except:
self.assertEquals(mimemapper.unomimemapper_bin, "/usr/bin/unomimemapper.py")
self.assertEquals(mimemapper.unomimemapper_bin, "/usr/bin/unomimemapper")
finally:
openoffice.release()
openoffice.acquire()
......
......@@ -33,7 +33,7 @@ from os import environ
from cloudoooTestCase import cloudoooTestCase, make_suite
class TestUnoMimeMapper(cloudoooTestCase):
"""Test Case to test all features of script unomimemapper.py"""
"""Test Case to test all features of script unomimemapper"""
def afterSetUp(self):
""" """
......
from setuptools import setup, find_packages
version = '1.0.6'
version = '1.0.7'
setup(name='cloudooo',
version=version,
......@@ -33,9 +33,9 @@ setup(name='cloudooo',
[paste.app_factory]
main = cloudooo.cloudooo:application
[console_scripts]
unoconverter.py = cloudooo.bin.unoconverter:main
unomimemapper.py = cloudooo.bin.unomimemapper:main
openoffice_tester.py = cloudooo.bin.openoffice_tester:main
cloudooo_tester.py = cloudooo.bin.cloudooo_tester:main
unoconverter = cloudooo.bin.unoconverter:main
unomimemapper = cloudooo.bin.unomimemapper:main
openoffice_tester = cloudooo.bin.openoffice_tester:main
cloudooo_tester = cloudooo.bin.cloudooo_tester:main
""",
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment