Commits

Ronald Oussoren committed 20216f8

Prepend our resources dir to the PYTHONPATH instead of appending it.

Comments (0)

Files changed (1)

pyobjc/Examples/TableModel2/main.m

   	if (strncmp(envp[envc], "PYTHONPATH=", sizeof("PYTHONPATH=")-1) == 0) {
 		const char* s = [[[NSBundle mainBundle] resourcePath] UTF8String];
 		childEnvp[envc] = alloca(strlen(envp[envc]) + strlen(s) + 2);
-		sprintf(childEnvp[envc], "%s:%s", envp[envc], s);
+		sprintf(childEnvp[envc], "%s:%s", s, envp[envc]);
 
 	} else {
 		childEnvp[envc] = envp[i];