Reviewed by Eric Seidel.
webkit-patch should refuse to run under Win32 Python
https://bugs.webkit.org/show_bug.cgi?id=40962
Given that there are lots of places in webkit-patch's code that
assume unix-style filenames (forward slashes), webkit-patch fails
with weird file-not-found errors when run under a native windows
Python. It would be nice if we just trapped this and errored out
at the beginning, rather than producing unpredictable errors.
* Scripts/webkit-patch:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65126
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2010-08-10 Dirk Pranke <dpranke@chromium.org>
+
+ Reviewed by Eric Seidel.
+
+ webkit-patch should refuse to run under Win32 Python
+ https://bugs.webkit.org/show_bug.cgi?id=40962
+
+ Given that there are lots of places in webkit-patch's code that
+ assume unix-style filenames (forward slashes), webkit-patch fails
+ with weird file-not-found errors when run under a native windows
+ Python. It would be nice if we just trapped this and errored out
+ at the beginning, rather than producing unpredictable errors.
+
+ * Scripts/webkit-patch:
+
2010-08-10 Kent Tamura <tkent@chromium.org>
Unreviewed, build fix.
from webkitpy.common.system.logutils import configure_logging
import webkitpy.python24.versioning as versioning
+_log = logging.getLogger("webkit-patch")
def main():
# This is a hack to let us enable DEBUG logging as early as possible.
configure_logging(logging_level=logging_level)
versioning.check_version()
+
+ if sys.platform == "win32":
+ _log.fatal("webkit-patch is only supported under Cygwin Python, "
+ "not Win32 Python")
+ sys.exit(1)
# Import webkit-patch code only after version-checking so that
# script doesn't error out before having a chance to report the