From 3defad855755cda867ecd9dd584b80d8e5b41f8a Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Fri, 6 May 2016 16:30:27 +0100 Subject: [PATCH] Removed userpython variable. --- gprMax/input_cmds_file.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'))]