nosoop / NinjaBuild-SMPlugin

Template to set up SourceMod plugin projects with Ninja
9 stars 2 forks source link

Fail to locate compiler on Windows if path quoted with trailing backslash #3

Open nosoop opened 3 years ago

nosoop commented 3 years ago
C:\Code\Project>python3 configure.py --spcomp-dir "C:\Applications\spcomp-1.10\"
Checking for SourcePawn compiler...
Traceback (most recent call last):
  File "C:\Code\Project\configure.py", line 45, in <module>
    raise FileNotFoundError('Could not find SourcePawn compiler.')
FileNotFoundError: Could not find SourcePawn compiler.

C:\Code\Project>python3 configure.py --spcomp-dir "C:\Applications\spcomp-1.10"
Checking for SourcePawn compiler...
Found SourcePawn compiler version 1.10.0.6453 at C:\Applications\spcomp-1.10\spcomp.EXE

C:\Code\Project>python3 configure.py --spcomp-dir C:\Applications\spcomp-1.10\
Checking for SourcePawn compiler...
Found SourcePawn compiler version 1.10.0.6453 at C:\Applications\spcomp-1.10\spcomp.EXE
nosoop commented 3 years ago

This may be a clink escaping quirk; not sure. Works fine in Powershell.