Mercurial > hg > movesynth
comparison tim_grid_mapper/grid_mapper.app/Contents/MacOS/grid_mapper @ 50:f4c6999ecfe9 tip
added the files on my computer that aren't aiff s> these shoudl be everything for the big bang fair 2011 - heresy, and tim's file's also here
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Sat, 08 Oct 2011 22:12:49 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
49:0eeda0223db3 | 50:f4c6999ecfe9 |
---|---|
1 #!/System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python | |
2 | |
3 import sys, os | |
4 execdir = os.path.dirname(sys.argv[0]) | |
5 executable = os.path.join(execdir, "Python") | |
6 resdir = os.path.join(os.path.dirname(execdir), "Resources") | |
7 libdir = os.path.join(os.path.dirname(execdir), "Frameworks") | |
8 mainprogram = os.path.join(resdir, "__argvemulator_grid_mapper.py") | |
9 | |
10 sys.argv.insert(1, mainprogram) | |
11 if 0 or 0: | |
12 os.environ["PYTHONPATH"] = resdir | |
13 if 0: | |
14 os.environ["PYTHONHOME"] = resdir | |
15 else: | |
16 pypath = os.getenv("PYTHONPATH", "") | |
17 if pypath: | |
18 pypath = ":" + pypath | |
19 os.environ["PYTHONPATH"] = resdir + pypath | |
20 os.environ["PYTHONEXECUTABLE"] = executable | |
21 os.environ["DYLD_LIBRARY_PATH"] = libdir | |
22 os.environ["DYLD_FRAMEWORK_PATH"] = libdir | |
23 os.execve(executable, sys.argv, os.environ) |