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

need to use __file__ parent path for pytest

parent 6cc0419c
No related branches found
No related tags found
1 merge request!5introduction of pathlib.Path
......@@ -6,7 +6,8 @@ import numpy as np
import icartt
# working directory, example files
wd, fns = pathlib.Path('.'), pathlib.Path('./examples').glob('*.ict')
wd = pathlib.Path(__file__).parent
fns = (wd/'examples').glob('*.ict')
def compareFiles(fn, strIn, strOut, skiplines=0, nlines=-1): # pragma: no cover
strOut.seek(0)
......
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