]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Adapted to os and imp changes
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 9 Oct 1995 23:17:18 +0000 (23:17 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 9 Oct 1995 23:17:18 +0000 (23:17 +0000)
Mac/scripts/ConfigurePython.py

index ac234e6b67e59b9409a7dedcbd33080f04e73118..6fd222ee9e73f52ee1186ec7254fbfc39f138301 100644 (file)
@@ -50,7 +50,7 @@ home folder.
        import imp
        cwd = os.getcwd()
        tblibname = os.path.join(cwd, "toolboxmodules.slb")
-       if not os.exists(tblibname):
+       if not os.path.exists(tblibname):
                print """
 I cannot find the 'toolboxmodules.slb' file in the PlugIns directory.
 Start afresh from a clean distribution. 
@@ -58,7 +58,7 @@ Start afresh from a clean distribution.
                sys.exit(1)
        try:
                for wtd in ["Ctl", "Dlg", "Evt", "Qd", "Res", "Win"]:
-                       imp.load_dynamic_module(wtd, tblibname, None)
+                       imp.load_dynamic(wtd, tblibname)
        except ImportError:
                print """
 I cannot load the toolbox modules by hand. Are you sure you are