osbm commited on
Commit
f2e1a50
·
1 Parent(s): b7939d7

change name properly

Browse files
Files changed (1) hide show
  1. zenodo.py +1 -1
zenodo.py CHANGED
@@ -49,7 +49,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
49
  # lets rename the file to the original name
50
  # copy file to the current directory without os specific commands
51
  os.system(f"cp {filepath} .")
52
- os.system(f"mv {self.filename} {self.filename.split('.')[0]}")
53
 
54
 
55
  yield 0, {"path": filepath}
 
49
  # lets rename the file to the original name
50
  # copy file to the current directory without os specific commands
51
  os.system(f"cp {filepath} .")
52
+ os.system(f"mv {os.path.basename(filepath)} {self.filename}")
53
 
54
 
55
  yield 0, {"path": filepath}