diff options
author | Just van Rossum <just@lettererror.com> | 1999-02-25 22:33:05 (GMT) |
---|---|---|
committer | Just van Rossum <just@lettererror.com> | 1999-02-25 22:33:05 (GMT) |
commit | 68922f06bf8fecc15c16e911f5f0a58ec6eabc18 (patch) | |
tree | 791566f7b05f1daf55843383df4a3cfc92c47e7d /Mac | |
parent | cf2efc67d93a8fe6b7820b2a99bd20cc89c2ed73 (diff) | |
download | cpython-68922f06bf8fecc15c16e911f5f0a58ec6eabc18.zip cpython-68922f06bf8fecc15c16e911f5f0a58ec6eabc18.tar.gz cpython-68922f06bf8fecc15c16e911f5f0a58ec6eabc18.tar.bz2 |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py index 545c09b..3501971 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 = {} |