Closed jebob closed 5 years ago
In various strings, there is the path C:\GAMS, but the backslash is an escape character in python, so C:\newGAMSfolder will be rendered as
C:\GAMS
C:\newGAMSfolder
C: ewGAMSfolder
because the \n represents a newline. Python doesn't recognize \G so throws a warning. Some ideas:
\n
\G
C:\\GAMS
"C:\GAMS"
r"C:\GAMS"
In various strings, there is the path
C:\GAMS
, but the backslash is an escape character in python, soC:\newGAMSfolder
will be rendered asbecause the
\n
represents a newline. Python doesn't recognize\G
so throws a warning. Some ideas:C:\GAMS
instead useC:\\GAMS
as the double backslach then becomes a regular backslash, but this is slightly less readable."C:\GAMS"
instead use a raw stringr"C:\GAMS"
which won't throw the error.