Rev | Line | |
---|
[4190] | 1 | import os |
---|
| 2 | |
---|
| 3 | env_var = 'PYTHONPATH' |
---|
| 4 | cwd = os.getcwd() |
---|
| 5 | |
---|
| 6 | cwd_source = cwd + os.sep + 'anuga_core' + os.sep + 'source' |
---|
| 7 | |
---|
[4233] | 8 | #root = os.sep |
---|
| 9 | #cwd_source = os.path.join(root,'d','cit','1','dgray','validate_inundation','ga','anuga_core','source') |
---|
[4190] | 10 | |
---|
[4233] | 11 | #Not tested |
---|
| 12 | av_dir = os.path.join('..','..','..','anuga_core', 'source') |
---|
| 13 | os.chdir(av_dir) |
---|
| 14 | cwd_source = os.getcwd() |
---|
| 15 | av_dir = os.path.join('..','..','anuga_validation','automated_validation_tests','okushiri_tank_validation') |
---|
| 16 | os.chdir(av_dir) |
---|
| 17 | |
---|
[4190] | 18 | print 'Old python path => %s' % os.getenv(env_var) |
---|
| 19 | # This is not a perminent change. It is only for this execution |
---|
| 20 | os.environ[env_var] = cwd_source |
---|
| 21 | print 'New python path => %s' % os.getenv(env_var) |
---|
| 22 | |
---|
| 23 | import validate_all |
---|
| 24 | #execfile('validate_all.py',{"PYTHONPATH":cwd_source}) |
---|
Note: See
TracBrowser
for help on using the repository browser.