forked from openlp/openlp
Use start script __main__.py which enables 'python -m openlp'
This commit is contained in:
parent
b4d5425887
commit
ddef29599f
3
setup.py
3
setup.py
@ -161,7 +161,6 @@ using a computer and a data projector.""",
|
|||||||
url='https://openlp.org/',
|
url='https://openlp.org/',
|
||||||
license='GPL-3.0-or-later',
|
license='GPL-3.0-or-later',
|
||||||
packages=find_packages(exclude=['ez_setup', 'tests*']),
|
packages=find_packages(exclude=['ez_setup', 'tests*']),
|
||||||
py_modules=['run_openlp'],
|
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
python_requires='>=3.6',
|
python_requires='>=3.6',
|
||||||
@ -207,5 +206,5 @@ using a computer and a data projector.""",
|
|||||||
'python-xlib; platform_system=="Linux"'
|
'python-xlib; platform_system=="Linux"'
|
||||||
],
|
],
|
||||||
test_suite='nose2.collector.collector',
|
test_suite='nose2.collector.collector',
|
||||||
entry_points={'gui_scripts': ['openlp = run_openlp:start']}
|
entry_points={'gui_scripts': ['openlp = openlp.__main__:start']}
|
||||||
)
|
)
|
||||||
|
@ -107,7 +107,7 @@ class TestMainWindow(TestCase, TestMixin):
|
|||||||
Test that passing a non service file does nothing.
|
Test that passing a non service file does nothing.
|
||||||
"""
|
"""
|
||||||
# GIVEN a non service file as an argument to openlp
|
# GIVEN a non service file as an argument to openlp
|
||||||
service = 'run_openlp.py'
|
service = 'setup.py'
|
||||||
|
|
||||||
# WHEN the argument is processed
|
# WHEN the argument is processed
|
||||||
self.main_window.open_cmd_line_files(service)
|
self.main_window.open_cmd_line_files(service)
|
||||||
|
Loading…
Reference in New Issue
Block a user