From: Just van Rossum Date: Thu, 25 Feb 1999 22:33:05 +0000 (+0000) Subject: fixed "crashing" bug when scripts folder as stored in prefs file does not exist. X-Git-Tag: v1.5.2c1~242 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68922f06bf8fecc15c16e911f5f0a58ec6eabc18;p=thirdparty%2FPython%2Fcpython.git fixed "crashing" bug when scripts folder as stored in prefs file does not exist. --- diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py index 545c09be6b8c..3501971f4f10 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 = {}