Xu Zhang
11/17/2020, 8:09 AMCURRENT_PATH = ":".join([p.strip() for p in sys.path if p])
EXECUTABLE_PATH = check_output([sys.executable, '-c', 'import sys; print(":".join([p.strip() for p in sys.path if p]))']).decode().strip()
os.putenv('PYTHONPATH', ':'.join([CURRENT_PATH, EXECUTABLE_PATH]))