summaryrefslogtreecommitdiff
path: root/Mac
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>1999-02-25 22:33:05 +0000
committerJust van Rossum <just@lettererror.com>1999-02-25 22:33:05 +0000
commit68922f06bf8fecc15c16e911f5f0a58ec6eabc18 (patch)
tree791566f7b05f1daf55843383df4a3cfc92c47e7d /Mac
parentcf2efc67d93a8fe6b7820b2a99bd20cc89c2ed73 (diff)
downloadcpython-git-68922f06bf8fecc15c16e911f5f0a58ec6eabc18.tar.gz
fixed "crashing" bug when scripts folder as stored in prefs file does not exist.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/IDE/PythonIDEMain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py
index 545c09be6b..3501971f4f 100644
--- a/Mac/Tools/IDE/PythonIDEMain.py
+++ b/Mac/Tools/IDE/PythonIDEMain.py
@@ -90,6 +90,7 @@ class PythonIDE(Wapplication.Application):
prefs = self.getprefs()
try:
fss, fss_changed = macfs.RawAlias(prefs.scriptsfolder).Resolve()
+ self.scriptsfolder = fss.NewAlias()
except:
path = os.path.join(os.getcwd(), 'Scripts')
if not os.path.exists(path):
@@ -98,7 +99,6 @@ class PythonIDE(Wapplication.Application):
self.scriptsfolder = fss.NewAlias()
self.scriptsfoldermodtime = fss.GetDates()[1]
else:
- self.scriptsfolder = fss.NewAlias()
self.scriptsfoldermodtime = fss.GetDates()[1]
prefs.scriptsfolder = self.scriptsfolder.data
self._scripts = {}