Skip to content

Commit 39508dc

Browse files
committed
Replace invalid identifier characters while processing default output name
1 parent 456dd5d commit 39508dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nmfu.py

+1
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,7 @@ def load_commandline_flags(cls, all_cmd_options: List[str]):
825825
raise RuntimeError("Program filename specified multiple times")
826826
input_filename = option
827827
program_output_name = os.path.splitext(os.path.basename(input_filename))[0]
828+
program_output_name = "".join(x if x in string.ascii_letters or x == ' ' else '_' for x in program_output_name)
828829
continue
829830
elif option[1] == "-":
830831
option_name = option[2:]

0 commit comments

Comments
 (0)