Skip to content

Commit 1252182

Browse files
authored
Quickfix for figshare upload
Changed "tmp" to "/tmp" in the dataset.yml file update for the python package.
1 parent f70ede8 commit 1252182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/push_to_figshare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def write_figshare_details_to_yaml(article_id, project_id, title, version):
199199
data = yaml.safe_load(f)
200200
data["figshare"] = f"https://api.figshare.com/v2/articles/{article_id}"
201201
data["version"] = version
202-
with open("tmp/dataset.yml", "w") as f:
202+
with open('/tmp/dataset.yml', 'w') as f:
203203
yaml.safe_dump(data, f, sort_keys=False)
204204

205205

@@ -272,4 +272,4 @@ def main():
272272
upload_to_figshare(args.token, args.title, args.directory, args.project_id, args.publish, args.version, args.article_id)
273273

274274
if __name__ == "__main__":
275-
main()
275+
main()

0 commit comments

Comments
 (0)