diff --git a/gprMax/input_cmds_file.py b/gprMax/input_cmds_file.py index 24d5bbe2..a894f631 100644 --- a/gprMax/input_cmds_file.py +++ b/gprMax/input_cmds_file.py @@ -32,7 +32,9 @@ def process_python_include_code(inputfile, usernamespace): Returns: processedlines (list): Input commands after Python processing. """ - + + userpython = False + with open(inputfile, 'r') as f: # Strip out any newline characters and comments that must begin with double hashes inputlines = [line.rstrip() for line in f if(not line.startswith('##') and line.rstrip('\n'))]