Skip to content

Commit 18ac7aa

Browse files
committed
Remove LD_LIBRARY_PATH and PYTHONPATH from environment before launching DF (fixes #138) (fixes #140)
1 parent 3775aca commit 18ac7aa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/launcher.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ def run_program(path, force=False, is_df=False, spawn_terminal=False):
106106
if ('TK_LIBRARY' in environ and
107107
sys._MEIPASS in environ['TK_LIBRARY']): # pylint:disable=no-member
108108
del environ['TK_LIBRARY']
109+
if 'LD_LIBRARY_PATH' in environ:
110+
del environ['LD_LIBRARY_PATH']
111+
if 'PYTHONPATH' in environ:
112+
del environ['PYTHONPATH']
109113

110114
lnp.running[path] = subprocess.Popen(
111115
run_args, cwd=workdir, env=environ)

0 commit comments

Comments
 (0)