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