Changeset 7864


Ignore:
Timestamp:
Jun 21, 2010, 9:15:01 AM (14 years ago)
Author:
hudson
Message:

Command line csv2sts test is always run in the correct folder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file_conversion/test_csv2sts.py

    r7863 r7864  
    7777        Make sure that the python file functions as a command-line tool.
    7878        """
     79
     80        # Look for script in same dir as this unit test.
     81        path = os.path.dirname( os.path.realpath( __file__ ) )
    7982       
    80         cmd = 'python ' + sys.path[0] + os.sep +'csv2sts.py --latitude '
     83        cmd = 'python ' + path + os.sep +'csv2sts.py --latitude '
    8184        cmd += '%s --lon %s %s %s' % (str(lat), str(lon), testfile_csv, sts_out)
    8285       
Note: See TracChangeset for help on using the changeset viewer.