setup.py: detect "--prefix=" correctly. (#433)

This commit is contained in:
Danny 2018-08-15 18:46:50 +02:00 committed by Peter Wu
parent 1412a07899
commit b8529030e6
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ sys.path[0] = backup_path_0
if 'install' in sys.argv:
# naively guess where the autostart .desktop file should be installed
if '--prefix' in sys.argv or '--home' in sys.argv:
if '--prefix' in sys.argv or any(x.startswith('--prefix=') for x in sys.argv) or '--home' in sys.argv:
autostart_path = 'etc/xdg/autostart'
elif '--user' in sys.argv:
from os import environ