diff --git a/script/run-in-vsenv.py b/script/run-in-vsenv.py index 0fe1da1..47240c9 100755 --- a/script/run-in-vsenv.py +++ b/script/run-in-vsenv.py @@ -53,14 +53,14 @@ class Args: def main(): args, rest = parse_args() - if not rest: - print("Must specify a command to run inside the Visual Studio environment.") - sys.exit(1) - if not is_windows(): print("This script only works on Windows.") sys.exit(1) + if not rest: + print("Must specify a command to run inside the Visual Studio environment.") + sys.exit(1) + if not "COMSPEC" in os.environ: print("COMSPEC environment variable is not defined, cannot proceed.") sys.exit(1)