Skip to content
Snippets Groups Projects
Commit 6cc0419c authored by Florian Obersteiner's avatar Florian Obersteiner
Browse files

added wd as script global

parent 55a67969
No related branches found
No related tags found
1 merge request!5introduction of pathlib.Path
......@@ -5,8 +5,8 @@ import datetime
import numpy as np
import icartt
# example files
fns = pathlib.Path('./examples').glob('*.ict')
# working directory, example files
wd, fns = pathlib.Path('.'), pathlib.Path('./examples').glob('*.ict')
def compareFiles(fn, strIn, strOut, skiplines=0, nlines=-1): # pragma: no cover
strOut.seek(0)
......@@ -63,7 +63,7 @@ def compareFiles(fn, strIn, strOut, skiplines=0, nlines=-1): # pragma: no cover
class Simple1001TestCase(unittest.TestCase):
def setUp(self):
self.fn = 'tests/examples/NOx_RHBrown_20040830_R0.ict'
self.fn = wd/'examples/NOx_RHBrown_20040830_R0.ict'
self.nHeader = 41
def tearDown(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment