We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d785eba commit 9606b55Copy full SHA for 9606b55
USAGE.md
@@ -48,7 +48,7 @@ As a *bare minimum*, you can do the following:
48
NSString *appPath = [NSString stringWithFormat:@"%@/app", resourcePath, nil];
49
50
setenv("PYTHONHOME", pythonHome, 1);
51
- setenv("PYTHONPATH", [NSString stringWithFormat:@"%@:%@:%@", appPath, nil]);
+ setenv("PYTHONPATH", appPath, 1);
52
53
Py_Initialize();
54
@@ -80,7 +80,7 @@ code will look something like this:
80
let appPath = Bundle.main.path(forResource: "app", ofType: nil)
81
82
setenv("PYTHONHOME", pythonHome, 1)
83
- setenv("PYTHONPATH", [appPath].compactMap { $0 }.joined(separator: ":"), 1)
+ setenv("PYTHONPATH", appPath, 1)
84
Py_Initialize()
85
// we now have a Python interpreter ready to be used
86
```
0 commit comments