Skip to content

Commit 55862c6

Browse files
Remove trailing slash which breaks os.path.basename
1 parent 1fb0dcf commit 55862c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pippin/dataprep.py

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def __init__(self, name, output_dir, config, options, global_config, dependencie
4040
if self.raw_dir is None:
4141
Task.fail_config(f"Unable to find {self.options.get('RAW_DIR')}")
4242

43+
if self.raw_dir[-1] == "/":
44+
self.raw_dir = self.raw_dir[:-1]
4345
self.genversion = os.path.basename(self.raw_dir)
4446
self.data_path = os.path.dirname(self.raw_dir)
4547
if self.unparsed_raw == "$SCRATCH_SIMDIR" or "SNDATA_ROOT/SIM" in self.raw_dir:

0 commit comments

Comments
 (0)