Last change
on this file since 4218 was
4190,
checked in by duncan, 18 years ago
|
hacky code that sets the python path and runs automatic validation.
|
File size:
530 bytes
|
Line | |
---|
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 | |
---|
8 | root = os.sep |
---|
9 | cwd_source = os.path.join(root,'d','cit','1','dgray','validate_inundation','ga','anuga_core','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 | import validate_all |
---|
17 | #execfile('validate_all.py',{"PYTHONPATH":cwd_source}) |
---|
Note: See
TracBrowser
for help on using the repository browser.