Skip to content
Snippets Groups Projects
Commit fbc195b1 authored by Alban Gruin's avatar Alban Gruin
Browse files

bin2mem: set the output file to the 2nd argument

parent 717faa11
No related branches found
No related tags found
No related merge requests found
...@@ -40,8 +40,7 @@ if(len(sys.argv) < 2): ...@@ -40,8 +40,7 @@ if(len(sys.argv) < 2):
print "Usage bin2mem.py FILENAME" print "Usage bin2mem.py FILENAME"
quit() quit()
filename = sys.argv[1].strip('.bin') + ".mem" filename = sys.argv[2]
mem_file = open(filename, 'wb') mem_file = open(filename, 'wb')
with open(sys.argv[1], "rb") as f: with open(sys.argv[1], "rb") as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment