]> granicus.if.org Git - python/commitdiff
Get/set sys.path initializer in new appearance way.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 13 Jan 2000 16:22:12 +0000 (16:22 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 13 Jan 2000 16:22:12 +0000 (16:22 +0000)
Mac/scripts/EditPythonPrefs.py

index e8177c69440393fa505b8ea4c97010e6b084aa81..343ea222d40f14bab226bff2bb629b0a3bb3c4c2 100644 (file)
@@ -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: