Mercurial > cpython-lru_cache-weakref
comparison Mac/scripts/ConfigurePython.py @ 3183:61ca19a3000f legacy-trunk
Adapted to os and imp changes
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Mon, 09 Oct 1995 23:17:18 +0000 |
| parents | 2caa3e283568 |
| children | 801265b86164 |
comparison
equal
deleted
inserted
replaced
| 3182:8f3f25a837b3 | 3183:61ca19a3000f |
|---|---|
| 48 """ | 48 """ |
| 49 help() | 49 help() |
| 50 import imp | 50 import imp |
| 51 cwd = os.getcwd() | 51 cwd = os.getcwd() |
| 52 tblibname = os.path.join(cwd, "toolboxmodules.slb") | 52 tblibname = os.path.join(cwd, "toolboxmodules.slb") |
| 53 if not os.exists(tblibname): | 53 if not os.path.exists(tblibname): |
| 54 print """ | 54 print """ |
| 55 I cannot find the 'toolboxmodules.slb' file in the PlugIns directory. | 55 I cannot find the 'toolboxmodules.slb' file in the PlugIns directory. |
| 56 Start afresh from a clean distribution. | 56 Start afresh from a clean distribution. |
| 57 """ | 57 """ |
| 58 sys.exit(1) | 58 sys.exit(1) |
| 59 try: | 59 try: |
| 60 for wtd in ["Ctl", "Dlg", "Evt", "Qd", "Res", "Win"]: | 60 for wtd in ["Ctl", "Dlg", "Evt", "Qd", "Res", "Win"]: |
| 61 imp.load_dynamic_module(wtd, tblibname, None) | 61 imp.load_dynamic(wtd, tblibname) |
| 62 except ImportError: | 62 except ImportError: |
| 63 print """ | 63 print """ |
| 64 I cannot load the toolbox modules by hand. Are you sure you are | 64 I cannot load the toolbox modules by hand. Are you sure you are |
| 65 using a PowerPC mac? | 65 using a PowerPC mac? |
| 66 """ | 66 """ |
