source: anuga_core/source/obsolete_code/set_pythonpath_validate.py @ 7585

Last change on this file since 7585 was 4233, checked in by duncan, 18 years ago

small change-not working yet

File size: 780 bytes
RevLine 
[4190]1import os
2
3env_var = 'PYTHONPATH'
4cwd = os.getcwd()
5
6cwd_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
12av_dir = os.path.join('..','..','..','anuga_core', 'source')
13os.chdir(av_dir)
14cwd_source = os.getcwd()
15av_dir = os.path.join('..','..','anuga_validation','automated_validation_tests','okushiri_tank_validation')
16os.chdir(av_dir)
17
[4190]18print 'Old python path  => %s' % os.getenv(env_var)
19# This is not a perminent change.  It is only for this execution
20os.environ[env_var] = cwd_source
21print 'New python path   => %s' % os.getenv(env_var)
22
23import validate_all
24#execfile('validate_all.py',{"PYTHONPATH":cwd_source})
Note: See TracBrowser for help on using the repository browser.