feat: Change entrypoint name

This will update the alternative shell script as well. It will now just
pass the modules directory to python interpreter to execute the __main__
module.

Signed-off-by: Sven Sager <akira@narux.de>
This commit is contained in:
2023-09-16 16:00:15 +02:00
parent efd27cc96c
commit e4d18f7b4a
2 changed files with 6 additions and 8 deletions

View File

@@ -1,9 +1,7 @@
#!/bin/sh #!/bin/sh
# Used to call the entry point, if packed with pybuild as application. # This script will create the entry point 'revpicommander', which is defined
# PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/revpicommander/ \ # in the setup.py script. If you want to install this python module as an
# --install-scripts=/usr/share/revpicommander/ # application and not in the python standard library directory, you will need
# # to use this script for /usr/bin.
# In that case the entry point will not find the revpicommander module in
# the python lib.
exec "/usr/share/revpicommander/revpicommander-gui" "$@" exec python3 /usr/share/revpicommander/revpicommander "$@"

View File

@@ -25,7 +25,7 @@ setup(
], ],
entry_points={ entry_points={
'gui_scripts': [ 'gui_scripts': [
'revpicommander-gui = revpicommander.revpicommander:main', 'revpicommander = revpicommander.revpicommander:main',
], ],
}, },