setup.py: detect "--prefix=" correctly. (#433)
This commit is contained in:
parent
1412a07899
commit
b8529030e6
2
setup.py
2
setup.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue