Skip to content

Commit 9606b55

Browse files
authored
Update USAGE.md
1 parent d785eba commit 9606b55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ As a *bare minimum*, you can do the following:
4848
NSString *appPath = [NSString stringWithFormat:@"%@/app", resourcePath, nil];
4949

5050
setenv("PYTHONHOME", pythonHome, 1);
51-
setenv("PYTHONPATH", [NSString stringWithFormat:@"%@:%@:%@", appPath, nil]);
51+
setenv("PYTHONPATH", appPath, 1);
5252

5353
Py_Initialize();
5454

@@ -80,7 +80,7 @@ code will look something like this:
8080
let appPath = Bundle.main.path(forResource: "app", ofType: nil)
8181

8282
setenv("PYTHONHOME", pythonHome, 1)
83-
setenv("PYTHONPATH", [appPath].compactMap { $0 }.joined(separator: ":"), 1)
83+
setenv("PYTHONPATH", appPath, 1)
8484
Py_Initialize()
8585
// we now have a Python interpreter ready to be used
8686
```

0 commit comments

Comments
 (0)