summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/IDE')
-rw-r--r--Mac/Tools/IDE/Wminiapp.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/Wminiapp.py b/Mac/Tools/IDE/Wminiapp.py
index d48a876..3ebd226 100644
--- a/Mac/Tools/IDE/Wminiapp.py
+++ b/Mac/Tools/IDE/Wminiapp.py
@@ -1,14 +1,16 @@
"""Minimal W application."""
import Wapplication
+import macresource
+import os
class TestApp(Wapplication.Application):
def __init__(self):
from Carbon import Res
- Res.FSpOpenResFile("Widgets.rsrc", 1)
+ macresource.open_pathname("Widgets.rsrc")
self._menustocheck = []
- self.preffilepath = ":Python:PythonIDE preferences"
+ self.preffilepath = os.path.join("Python", "PythonIDE preferences")
Wapplication.Application.__init__(self, 'Pyth')
# open a new text editor
import PyEdit