diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-01-13 16:22:12 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-01-13 16:22:12 (GMT) |
commit | 8242c9e4c44e28696808950e061137d7cc6dd407 (patch) | |
tree | fbda4a548e57b1a565044d2361c3a6d07a2a35b0 /Mac | |
parent | a400d8a96d44904ed1bb57f5a15ca6ad10a8e091 (diff) | |
download | cpython-8242c9e4c44e28696808950e061137d7cc6dd407.zip cpython-8242c9e4c44e28696808950e061137d7cc6dd407.tar.gz cpython-8242c9e4c44e28696808950e061137d7cc6dd407.tar.bz2 |
Get/set sys.path initializer in new appearance way.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/scripts/EditPythonPrefs.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Mac/scripts/EditPythonPrefs.py b/Mac/scripts/EditPythonPrefs.py index e8177c6..343ea22 100644 --- a/Mac/scripts/EditPythonPrefs.py +++ b/Mac/scripts/EditPythonPrefs.py @@ -110,9 +110,9 @@ def interact(options, title): d = GetNewDialog(DIALOG_ID, -1) htext = d.GetDialogItemAsControl(TITLE_ITEM) SetDialogItemText(htext, title) - ctl = d.GetDialogItemAsControl(TEXT_ITEM) + path_ctl = d.GetDialogItemAsControl(TEXT_ITEM) data = string.joinfields(options['path'], '\r') - ctl.SetControlData(Controls.kControlEditTextPart, Controls.kControlEditTextTextTag, data) + path_ctl.SetControlData(Controls.kControlEditTextPart, Controls.kControlEditTextTextTag, data) d.SelectDialogItemText(TEXT_ITEM, 0, 32767) d.SelectDialogItemText(TEXT_ITEM, 0, 0) @@ -142,7 +142,8 @@ def interact(options, title): noptions = optinteract(noptions) if noptions: options = noptions - tmp = string.splitfields(h.data, '\r') + data = path_ctl.GetControlData(Controls.kControlEditTextPart, Controls.kControlEditTextTextTag) + tmp = string.splitfields(data, '\r') newpath = [] for i in tmp: if i: |