Mercurial > cpython-lru_cache-weakref
comparison Mac/Lib/pythonprefs.py @ 7029:a367aaa6503c legacy-trunk
Loading defaults for gusi/sys.path didn't work for applets. Fixed.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Tue, 06 Jan 1998 12:11:48 +0000 |
| parents | 3d61474a1550 |
| children | fa85a7fd740b |
comparison
equal
deleted
inserted
replaced
| 7028:379d1fd42dbf | 7029:a367aaa6503c |
|---|---|
| 106 | 106 |
| 107 def AppletOptions(file): | 107 def AppletOptions(file): |
| 108 fss = macfs.FSSpec(file) | 108 fss = macfs.FSSpec(file) |
| 109 a_popt = PoptLoader(ResLoader(fss, 'Popt', OVERRIDE_POPT_ID, default=popt_loader)) | 109 a_popt = PoptLoader(ResLoader(fss, 'Popt', OVERRIDE_POPT_ID, default=popt_loader)) |
| 110 a_dir = ResLoader(fss, 'alis', OVERRIDE_DIR_ID, default=dir) | 110 a_dir = ResLoader(fss, 'alis', OVERRIDE_DIR_ID, default=dir) |
| 111 a_gusi = ResLoader(fss, 'GU\267I', OVERRIDE_GUSI_ID, default=gusi_loader) | 111 a_gusi = GusiLoader( |
| 112 a_path = StrListLoader(fss, 'STR#', OVERRIDE_PATH_ID, default=path_loader) | 112 ResLoader(fss, 'GU\267I', OVERRIDE_GUSI_ID, default=gusi_loader)) |
| 113 a_path = StrListLoader( | |
| 114 ResLoader(fss, 'STR#', OVERRIDE_PATH_ID, default=path_loader)) | |
| 113 return PythonOptions(a_popt, a_dir, a_gusi, a_path) | 115 return PythonOptions(a_popt, a_dir, a_gusi, a_path) |
| 114 | 116 |
| 115 def _test(): | 117 def _test(): |
| 116 import preferences | 118 import preferences |
| 117 preferences.debug = 1 | 119 preferences.debug = 1 |
