NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Changeset 249

Show
Ignore:
Timestamp:
11/19/09 12:34:51
Author:
cbc
Message:

Refactor _testSetUp.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sodar/branches/scintec-branch/sodar/scintec/maindata.py

    r248 r249  
    4545                             
    4646def _testSetUp(mnd_dir,mnd_file): 
    47     current_dir = os.path.abspath(os.path.dirname(__file__)) 
    48     package_dir = os.path.split(current_dir)[0] 
    49     data_dir = os.path.join(package_dir,'tests','data') 
    50     good_dir = os.path.join(data_dir,mnd_dir) 
    51     mnd_file = os.path.join(good_dir,mnd_file) 
     47    module_dir = os.path.abspath(os.path.dirname(__file__)) 
     48    package_dir = os.path.split(module_dir)[0] 
     49    mnd_file = os.path.join(package_dir,'tests','data',mnd_dir,mnd_file) 
    5250    mnd = open(mnd_file).read() 
    5351    return mnd