Consider any executable from /usr to be a system install

This commit is contained in:
Mathieu Comandon 2018-05-18 14:46:45 -07:00
parent 339a67fe79
commit 648e285492

View file

@ -19,7 +19,7 @@ import locale
from os.path import realpath, dirname, normpath
LAUNCH_PATH = dirname(realpath(__file__))
if LAUNCH_PATH != "/usr/bin":
if not LAUNCH_PATH.startswith("/usr"):
sys.dont_write_bytecode = True
SOURCE_PATH = normpath(os.path.join(LAUNCH_PATH, '..'))
sys.path.insert(0, SOURCE_PATH)