Skip to content

Commit ce5a148

Browse files
authored
Merge pull request Lightricks#38 from Lightricks/fix/isolate-bundled-python
Set PYTHONNOUSERSITE=1 to isolate bundled Python
2 parents fc8fa49 + e6667fd commit ce5a148

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

electron/python-backend.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ export async function startPythonBackend(): Promise<void> {
221221
env: {
222222
...process.env,
223223
PYTHONUNBUFFERED: '1',
224+
PYTHONNOUSERSITE: '1',
224225
LTX_PORT: String(PYTHON_PORT),
225226
LTX_APP_DATA_DIR: getAppDataDir(),
226227
PYTORCH_ENABLE_MPS_FALLBACK: '1',

0 commit comments

Comments
 (0)