From 68922f06bf8fecc15c16e911f5f0a58ec6eabc18 Mon Sep 17 00:00:00 2001
From: Just van Rossum <just@lettererror.com>
Date: Thu, 25 Feb 1999 22:33:05 +0000
Subject: fixed "crashing" bug when scripts folder as stored in prefs file does
 not exist.

---
 Mac/Tools/IDE/PythonIDEMain.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 = {}
-- 
cgit v0.12

