[pypy-svn] r58612 - pypy/dist/pypy/lang/gameboy/debug
cami at codespeak.net
cami at codespeak.net
Mon Oct 6 10:34:59 CEST 2008
Author: cami
Date: Mon Oct 6 10:34:58 2008
New Revision: 58612
Modified:
pypy/dist/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py
Log:
made platform check for importing the NSApplication package in the debug entry point
Modified: pypy/dist/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py
==============================================================================
--- pypy/dist/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py (original)
+++ pypy/dist/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py Mon Oct 6 10:34:58 2008
@@ -8,8 +8,9 @@
# ------------------------------------------------------------------------------
-from AppKit import NSApplication
-NSApplication.sharedApplication()
+if sys.platform == 'darwin':
+ from AppKit import NSApplication
+ NSApplication.sharedApplication()
# ------------------------------------------------------------------------------
ROM_PATH = str(py.magic.autopath().dirpath().dirpath())+"/rom"
More information about the Pypy-commit
mailing list