Line | |
---|
1 | """ |
---|
2 | Used to compile a copy of anuga which isn't the main copy |
---|
3 | """ |
---|
4 | import os |
---|
5 | |
---|
6 | env_var = 'PYTHONPATH' |
---|
7 | cwd = os.getcwd() |
---|
8 | |
---|
9 | cwd_source = cwd + os.sep + os.sep + 'source' |
---|
10 | |
---|
11 | print 'Old python path => %s' % os.getenv(env_var) |
---|
12 | # This is not a perminent change. It is only for this execution |
---|
13 | os.environ[env_var] = cwd_source |
---|
14 | print 'New python path => %s' % os.getenv(env_var) |
---|
15 | |
---|
16 | execfile('compile_all.py') |
---|
17 | # THIS DOESN'T WORK |
---|
18 | execfile('test_all.py',{"PYTHONPATH":cwd_source}) |
---|
Note: See
TracBrowser
for help on using the repository browser.