source: branches/numpy/obsolete_code/set_pp_comp_test_all.py @ 8353

Last change on this file since 8353 was 4300, checked in by duncan, 18 years ago

comments

File size: 486 bytes
Line 
1"""
2Used to compile a copy of anuga which isn't the main copy
3"""
4import os
5
6env_var = 'PYTHONPATH'
7cwd = os.getcwd()
8
9cwd_source = cwd + os.sep  + os.sep + '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
16execfile('compile_all.py')
17# THIS DOESN'T WORK
18execfile('test_all.py',{"PYTHONPATH":cwd_source})
Note: See TracBrowser for help on using the repository browser.