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

Last change on this file since 4190 was 4190, checked in by duncan, 17 years ago

hacky code that sets the python path and runs automatic validation.

File size: 530 bytes
Line 
1import os
2
3env_var = 'PYTHONPATH'
4cwd = os.getcwd()
5
6cwd_source = cwd + os.sep + 'anuga_core'  + os.sep + 'source'
7
8root = os.sep
9cwd_source = os.path.join(root,'d','cit','1','dgray','validate_inundation','ga','anuga_core','source')
10
11print 'Old python path  => %s' % os.getenv(env_var)
12# This is not a perminent change.  It is only for this execution
13os.environ[env_var] = cwd_source
14print 'New python path   => %s' % os.getenv(env_var)
15
16import validate_all
17#execfile('validate_all.py',{"PYTHONPATH":cwd_source})
Note: See TracBrowser for help on using the repository browser.