Commit 967d5b63c87fae37ced90f013febff152efd8d65
1 parent
6e1337f1
Exists in
master
Fix #6. Add PIRENEA_manips as possible choice.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/files.py
... | ... | @@ -22,7 +22,8 @@ class PireneaFiles(object): |
22 | 22 | self.folder = os.path.abspath(folder) |
23 | 23 | if not os.path.isdir(self.folder): |
24 | 24 | raise ValueError("Not a valid directory") |
25 | - if "PIRENEA" not in self.folder.upper() or "DATA" not in self.folder.upper(): | |
25 | + if "PIRENEA" not in self.folder.upper() and "DATA" not in self.folder.upper() and \ | |
26 | + "PIRENEA_manips" not in self.folder.upper(): | |
26 | 27 | raise ValueError("Not a valid PIRENEA DATA directory") |
27 | 28 | |
28 | 29 | def add_prefix(self, prefix="P0"): |
... | ... |