From 9ff9b994bcf852b700527a1ebe42176b817a24e2 Mon Sep 17 00:00:00 2001 From: "whesse@google.com" Date: Thu, 15 May 2014 14:09:02 +0000 Subject: [PATCH] Fix only_in_release_mode.py's subcommand paths on Windows. BUG=dartbug.com/18786 R=kustermann@google.com Review URL: https://codereview.chromium.org//286953004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36222 260f80e4-7a28-3924-810f-c04153c831b5 --- tools/only_in_release_mode.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/only_in_release_mode.py b/tools/only_in_release_mode.py index 2713b105d6f..089d30c039c 100644 --- a/tools/only_in_release_mode.py +++ b/tools/only_in_release_mode.py @@ -28,6 +28,7 @@ def Main(): separator_index = sys.argv.index('--') outputs = sys.argv[1:separator_index] arguments = sys.argv[separator_index + 1:] + arguments[0] = os.path.normpath(arguments[0]) mode = os.getenv('DART_BUILD_MODE', default='release') if mode != 'release': print >> sys.stderr, 'Not running %s in mode=%s' % (arguments, mode)