summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/PyEdit.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-29 15:19:17 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-29 15:19:17 (GMT)
commit64aa1e2c83be3eab44109a6d22874df6b1180d4e (patch)
treeec35ab46edd96fc4207f3d4b6addcf361a819498 /Mac/Tools/IDE/PyEdit.py
parent565e956cb0915185ad749f8f7933dbe28106fc06 (diff)
downloadcpython-64aa1e2c83be3eab44109a6d22874df6b1180d4e.zip
cpython-64aa1e2c83be3eab44109a6d22874df6b1180d4e.tar.gz
cpython-64aa1e2c83be3eab44109a6d22874df6b1180d4e.tar.bz2
Use FSpCreateResFile() in stead of CreateResFile().
Diffstat (limited to 'Mac/Tools/IDE/PyEdit.py')
-rw-r--r--Mac/Tools/IDE/PyEdit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py
index 3f1e9c8..7274a1e 100644
--- a/Mac/Tools/IDE/PyEdit.py
+++ b/Mac/Tools/IDE/PyEdit.py
@@ -5,6 +5,7 @@ import Wtraceback
from Wkeys import *
import macfs
+import MACFS
import MacOS
import Win
import Res
@@ -134,7 +135,7 @@ class Editor(W.Window):
try:
resref = Res.FSpOpenResFile(self.path, 3)
except Res.Error:
- Res.CreateResFile(self.path)
+ Res.FSpCreateResFile(self.path, self._creator, 'TEXT', MACFS.smAllScripts)
resref = Res.FSpOpenResFile(self.path, 3)
try:
data = Res.Resource(marshal.dumps(self.settings))