Merge pull request #385 from kivy/fix/module_path
Fix inabililty to find included modules
This commit is contained in:
commit
178c696879
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ int main(int argc, char *argv[]) {
|
||||||
NSString *python_home = [NSString stringWithFormat:@"PYTHONHOME=%@", resourcePath, nil];
|
NSString *python_home = [NSString stringWithFormat:@"PYTHONHOME=%@", resourcePath, nil];
|
||||||
putenv((char *)[python_home UTF8String]);
|
putenv((char *)[python_home UTF8String]);
|
||||||
|
|
||||||
NSString *python_path = [NSString stringWithFormat:@"PYTHONPATH=%@:%@/lib/python3.7/:%@/lib/python3.7/site-packages", resourcePath, resourcePath, resourcePath, nil];
|
NSString *python_path = [NSString stringWithFormat:@"PYTHONPATH=%@:%@/lib/python3.7/:%@/lib/python3.7/site-packages:.", resourcePath, resourcePath, resourcePath, nil];
|
||||||
putenv((char *)[python_path UTF8String]);
|
putenv((char *)[python_path UTF8String]);
|
||||||
|
|
||||||
NSString *tmp_path = [NSString stringWithFormat:@"TMP=%@/tmp", resourcePath, nil];
|
NSString *tmp_path = [NSString stringWithFormat:@"TMP=%@/tmp", resourcePath, nil];
|
||||||
|
|
Loading…
Reference in a new issue