mirror of
https://github.com/lutris/lutris
synced 2024-09-04 15:03:35 +00:00
Also ignore modules in /var/home
This commit is contained in:
parent
be2c47cb4b
commit
414da87d0e
|
@ -23,7 +23,7 @@ LAUNCH_PATH = dirname(realpath(__file__))
|
|||
# Prevent loading Python modules from home folder
|
||||
# They can interfere with Lutris and prevent it
|
||||
# from working.
|
||||
sys.path = [path for path in sys.path if not path.startswith("/home")]
|
||||
sys.path = [path for path in sys.path if not path.startswith("/home") and not path.startswith("/var/home")]
|
||||
|
||||
if os.path.isdir(os.path.join(LAUNCH_PATH, "../lutris")):
|
||||
sys.dont_write_bytecode = True
|
||||
|
|
Loading…
Reference in a new issue