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 ...@@ -36,7 +36,7 @@ from types import InstanceType
__doc__ = """ __doc__ = """
usage: unomimemapper.py [options] usage: unomimemapper [options]
Options: Options:
-h, --help this help screen -h, --help this help screen
......
...@@ -79,11 +79,11 @@ def application(global_config, **local_config): ...@@ -79,11 +79,11 @@ def application(global_config, **local_config):
cloudooo_resources = pkg_resources.get_distribution('cloudooo') cloudooo_resources = pkg_resources.get_distribution('cloudooo')
console_scripts = cloudooo_resources.get_entry_map()['console_scripts'] console_scripts = cloudooo_resources.get_entry_map()['console_scripts']
unomimemapper_bin = path.join(path.dirname(executable), unomimemapper_bin = path.join(path.dirname(executable),
console_scripts["unomimemapper.py"].name) console_scripts["unomimemapper"].name)
unoconverter_bin = path.join(path.dirname(executable), unoconverter_bin = path.join(path.dirname(executable),
console_scripts["unoconverter.py"].name) console_scripts["unoconverter"].name)
openoffice_tester_bin = path.join(path.dirname(executable), 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 # The Xvfb will run in the same local of the OpenOffice
application_hostname = local_config.get('application_hostname') application_hostname = local_config.get('application_hostname')
......
...@@ -104,7 +104,7 @@ class MimeMapper(object): ...@@ -104,7 +104,7 @@ class MimeMapper(object):
bad_flag_list = [65, 94217, 536641, 1572929, 268959937, 524373, 85, 524353] bad_flag_list = [65, 94217, 536641, 1572929, 268959937, 524373, 85, 524353]
self.python_path = kw.get("python_path", "python") self.python_path = kw.get("python_path", "python")
self.unomimemapper_bin = kw.get("unomimemapper_bin", self.unomimemapper_bin = kw.get("unomimemapper_bin",
"/usr/bin/unomimemapper.py") "/usr/bin/unomimemapper")
uno_path = kw.get("uno_path", environ.get('uno_path')) uno_path = kw.get("uno_path", environ.get('uno_path'))
office_bin_path = kw.get("office_bin_path", environ.get('office_bin_path')) office_bin_path = kw.get("office_bin_path", environ.get('office_bin_path'))
command = [python_path command = [python_path
......
...@@ -53,11 +53,11 @@ def extract_cloudooo_script(): ...@@ -53,11 +53,11 @@ def extract_cloudooo_script():
console_scripts = cloudooo_resources.get_entry_map()['console_scripts'] console_scripts = cloudooo_resources.get_entry_map()['console_scripts']
openoffice_tester_bin_path = path.join(path.dirname(executable), 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), 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), unoconverter_bin_path = path.join(path.dirname(executable),
console_scripts["unoconverter.py"].name) console_scripts["unoconverter"].name)
return dict(unoconverter_bin=unoconverter_bin_path, return dict(unoconverter_bin=unoconverter_bin_path,
unomimemapper_bin=unomimemapper_bin_path, unomimemapper_bin=unomimemapper_bin_path,
......
...@@ -192,7 +192,7 @@ class TestMimeMapper(cloudoooTestCase): ...@@ -192,7 +192,7 @@ class TestMimeMapper(cloudoooTestCase):
try: try:
mimemapper.loadFilterList(hostname, port) mimemapper.loadFilterList(hostname, port)
except: except:
self.assertEquals(mimemapper.unomimemapper_bin, "/usr/bin/unomimemapper.py") self.assertEquals(mimemapper.unomimemapper_bin, "/usr/bin/unomimemapper")
finally: finally:
openoffice.release() openoffice.release()
openoffice.acquire() openoffice.acquire()
......
...@@ -33,7 +33,7 @@ from os import environ ...@@ -33,7 +33,7 @@ from os import environ
from cloudoooTestCase import cloudoooTestCase, make_suite from cloudoooTestCase import cloudoooTestCase, make_suite
class TestUnoMimeMapper(cloudoooTestCase): 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): def afterSetUp(self):
""" """ """ """
......
from setuptools import setup, find_packages from setuptools import setup, find_packages
version = '1.0.6' version = '1.0.7'
setup(name='cloudooo', setup(name='cloudooo',
version=version, version=version,
...@@ -33,9 +33,9 @@ setup(name='cloudooo', ...@@ -33,9 +33,9 @@ setup(name='cloudooo',
[paste.app_factory] [paste.app_factory]
main = cloudooo.cloudooo:application main = cloudooo.cloudooo:application
[console_scripts] [console_scripts]
unoconverter.py = cloudooo.bin.unoconverter:main unoconverter = cloudooo.bin.unoconverter:main
unomimemapper.py = cloudooo.bin.unomimemapper:main unomimemapper = cloudooo.bin.unomimemapper:main
openoffice_tester.py = cloudooo.bin.openoffice_tester:main openoffice_tester = cloudooo.bin.openoffice_tester:main
cloudooo_tester.py = cloudooo.bin.cloudooo_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