I am working on a calculator program as a part of a much larger project and when I finally thought I had it finished I tested the defined "quit" command. However, it failed and after some research, I came here. What I need to know is how to make the (path) argument have a set, pre-defined path, but also have a variable for the actual file name. eg: /HDD/APPS/(insert variable here).
This is the error and the line that the error occurred on:
File "../../C.py", line 19
if ( not os.path.isfile('/HDD/APPS/'exe)):
^
SyntaxError: invalid syntax
if ( not os.path.isfile('/HDD/APPS/' + str(exe))):
– Priyank Patel Jan 24 '14 at 6:31