Skip to content

Commit

Permalink
Filename can't have a forward slash in it
Browse files Browse the repository at this point in the history
  • Loading branch information
aaruni96 committed Aug 2, 2024
1 parent 4da9ad7 commit 145411a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
branch = sys.argv[3]
filename = sys.argv[4]
tut = f'''https://raw.githubusercontent.com/{repo}/{branch}/{filename}.ipynb'''
nbfilename = f"notebooks/{filename}.ipynb"
nbfilename = f"notebooks/{filename.replace("/", "_")}.ipynb"
with open(nbfilename, 'w') as tutfile:
r = requests.get(tut).content.decode()
tutfile.write(r)
Expand Down

0 comments on commit 145411a

Please sign in to comment.