change name properly
Browse files
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 {
|
| 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}
|