Changeset 249
- Timestamp:
- 11/19/09 12:34:51
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sodar/branches/scintec-branch/sodar/scintec/maindata.py
r248 r249 45 45 46 46 def _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) 52 50 mnd = open(mnd_file).read() 53 51 return mnd