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
Branches
Tags
1 merge request!5introduction of pathlib.Path
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
......@@ -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.
Please register or to comment