Merge lp://staging/~dpaleino/wicd/code-separation into lp://staging/wicd/1.6
- code-separation
- Merge into experimental
Proposed by
David Paleino
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp://staging/~dpaleino/wicd/code-separation |
Merge into: | lp://staging/wicd/1.6 |
Diff against target: |
290 lines (+65/-34) 13 files modified
gtk/gui.py (+6/-6) gtk/guiutil.py (+1/-1) gtk/netentry.py (+7/-7) gtk/prefs.py (+1/-1) gtk/wicd-client.py (+2/-2) in/scripts=wicd-cli.in (+1/-1) in/scripts=wicd-client.in (+1/-1) in/scripts=wicd-curses.in (+1/-1) in/scripts=wicd-gtk.in (+15/-0) in/scripts=wicd.in (+4/-1) in/wicd=wpath.py.in (+4/-0) setup.py (+21/-12) wicd/wicd-daemon.py (+1/-1) |
To merge this branch: | bzr merge lp://staging/~dpaleino/wicd/code-separation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Wicd-devel | Pending | ||
Review via email:
|
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
David Paleino (dpaleino) wrote : | # |
- 505. By Adam Blackburn
-
merged David Paleino's split file installation branch
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'gtk' | |||
2 | === renamed file 'wicd/configscript.py' => 'gtk/configscript.py' | |||
3 | === renamed file 'wicd/gui.py' => 'gtk/gui.py' | |||
4 | --- wicd/gui.py 2009-12-30 21:06:27 +0000 | |||
5 | +++ gtk/gui.py 2010-01-02 11:36:15 +0000 | |||
6 | @@ -36,12 +36,12 @@ | |||
7 | 36 | from wicd import misc | 36 | from wicd import misc |
8 | 37 | from wicd import wpath | 37 | from wicd import wpath |
9 | 38 | from wicd import dbusmanager | 38 | from wicd import dbusmanager |
10 | 39 | from wicd import prefs | ||
11 | 40 | from wicd import netentry | ||
12 | 41 | from wicd.misc import noneToString | 39 | from wicd.misc import noneToString |
16 | 42 | from wicd.netentry import WiredNetworkEntry, WirelessNetworkEntry | 40 | import prefs |
17 | 43 | from wicd.prefs import PreferencesDialog | 41 | from prefs import PreferencesDialog |
18 | 44 | from wicd.guiutil import error, LabelEntry | 42 | import netentry |
19 | 43 | from netentry import WiredNetworkEntry, WirelessNetworkEntry | ||
20 | 44 | from guiutil import error, LabelEntry | ||
21 | 45 | from wicd.translations import language | 45 | from wicd.translations import language |
22 | 46 | 46 | ||
23 | 47 | if __name__ == '__main__': | 47 | if __name__ == '__main__': |
24 | @@ -148,7 +148,7 @@ | |||
25 | 148 | 148 | ||
26 | 149 | self.tray = tray | 149 | self.tray = tray |
27 | 150 | 150 | ||
29 | 151 | gladefile = os.path.join(wpath.share, "wicd.glade") | 151 | gladefile = os.path.join(wpath.gtk, "wicd.glade") |
30 | 152 | self.wTree = gtk.glade.XML(gladefile) | 152 | self.wTree = gtk.glade.XML(gladefile) |
31 | 153 | self.window = self.wTree.get_widget("window1") | 153 | self.window = self.wTree.get_widget("window1") |
32 | 154 | self.window.set_icon_name("wicd-client") | 154 | self.window.set_icon_name("wicd-client") |
33 | 155 | 155 | ||
34 | === renamed file 'wicd/guiutil.py' => 'gtk/guiutil.py' | |||
35 | --- wicd/guiutil.py 2009-11-27 03:42:39 +0000 | |||
36 | +++ gtk/guiutil.py 2010-01-02 11:36:15 +0000 | |||
37 | @@ -19,7 +19,7 @@ | |||
38 | 19 | import gtk | 19 | import gtk |
39 | 20 | import os.path | 20 | import os.path |
40 | 21 | 21 | ||
42 | 22 | import wpath | 22 | import wicd.wpath as wpath |
43 | 23 | 23 | ||
44 | 24 | HAS_NOTIFY = True | 24 | HAS_NOTIFY = True |
45 | 25 | try: | 25 | try: |
46 | 26 | 26 | ||
47 | === renamed file 'wicd/netentry.py' => 'gtk/netentry.py' | |||
48 | --- wicd/netentry.py 2009-12-30 18:29:22 +0000 | |||
49 | +++ gtk/netentry.py 2010-01-02 11:36:15 +0000 | |||
50 | @@ -26,13 +26,13 @@ | |||
51 | 26 | import gtk | 26 | import gtk |
52 | 27 | import os | 27 | import os |
53 | 28 | 28 | ||
58 | 29 | import misc | 29 | import wicd.misc as misc |
59 | 30 | import wpath | 30 | import wicd.wpath as wpath |
60 | 31 | import dbusmanager | 31 | import wicd.dbusmanager as dbusmanager |
61 | 32 | from misc import noneToString, stringToNone, noneToBlankString, to_bool | 32 | from wicd.misc import noneToString, stringToNone, noneToBlankString, to_bool |
62 | 33 | from guiutil import error, LabelEntry, GreyLabel, LeftAlignedLabel, string_input | 33 | from guiutil import error, LabelEntry, GreyLabel, LeftAlignedLabel, string_input |
63 | 34 | 34 | ||
65 | 35 | from translations import language | 35 | from wicd.translations import language |
66 | 36 | 36 | ||
67 | 37 | # These get set when a NetworkEntry is instantiated. | 37 | # These get set when a NetworkEntry is instantiated. |
68 | 38 | daemon = None | 38 | daemon = None |
69 | @@ -303,7 +303,7 @@ | |||
70 | 303 | def edit_scripts(self, widget=None, event=None): | 303 | def edit_scripts(self, widget=None, event=None): |
71 | 304 | """ Launch the script editting dialog. """ | 304 | """ Launch the script editting dialog. """ |
72 | 305 | profile = self.prof_name | 305 | profile = self.prof_name |
74 | 306 | cmdend = [os.path.join(wpath.lib, "configscript.py"), profile, "wired"] | 306 | cmdend = [os.path.join(wpath.gtk, "configscript.py"), profile, "wired"] |
75 | 307 | if os.getuid() != 0: | 307 | if os.getuid() != 0: |
76 | 308 | cmdbase = misc.get_sudo_cmd(language['scripts_need_pass'], | 308 | cmdbase = misc.get_sudo_cmd(language['scripts_need_pass'], |
77 | 309 | prog_num=daemon.GetSudoApp()) | 309 | prog_num=daemon.GetSudoApp()) |
78 | @@ -408,7 +408,7 @@ | |||
79 | 408 | 408 | ||
80 | 409 | def edit_scripts(self, widget=None, event=None): | 409 | def edit_scripts(self, widget=None, event=None): |
81 | 410 | """ Launch the script editting dialog. """ | 410 | """ Launch the script editting dialog. """ |
83 | 411 | cmdend = [os.path.join(wpath.lib, "configscript.py"), | 411 | cmdend = [os.path.join(wpath.gtk, "configscript.py"), |
84 | 412 | str(self.networkID), "wireless"] | 412 | str(self.networkID), "wireless"] |
85 | 413 | if os.getuid() != 0: | 413 | if os.getuid() != 0: |
86 | 414 | cmdbase = misc.get_sudo_cmd(language['scripts_need_pass'], | 414 | cmdbase = misc.get_sudo_cmd(language['scripts_need_pass'], |
87 | 415 | 415 | ||
88 | === renamed file 'wicd/prefs.py' => 'gtk/prefs.py' | |||
89 | --- wicd/prefs.py 2009-11-24 05:27:41 +0000 | |||
90 | +++ gtk/prefs.py 2010-01-02 11:36:15 +0000 | |||
91 | @@ -39,7 +39,7 @@ | |||
92 | 39 | wireless = None | 39 | wireless = None |
93 | 40 | wired = None | 40 | wired = None |
94 | 41 | 41 | ||
96 | 42 | from translations import language | 42 | from wicd.translations import language |
97 | 43 | 43 | ||
98 | 44 | USER_SETTINGS_DIR = os.path.expanduser('~/.wicd/') | 44 | USER_SETTINGS_DIR = os.path.expanduser('~/.wicd/') |
99 | 45 | 45 | ||
100 | 46 | 46 | ||
101 | === renamed file 'wicd/wicd-client.py' => 'gtk/wicd-client.py' | |||
102 | --- wicd/wicd-client.py 2009-12-30 21:29:59 +0000 | |||
103 | +++ gtk/wicd-client.py 2010-01-02 11:36:15 +0000 | |||
104 | @@ -60,9 +60,9 @@ | |||
105 | 60 | # Wicd specific imports | 60 | # Wicd specific imports |
106 | 61 | from wicd import wpath | 61 | from wicd import wpath |
107 | 62 | from wicd import misc | 62 | from wicd import misc |
108 | 63 | from wicd import gui | ||
109 | 64 | from wicd import dbusmanager | 63 | from wicd import dbusmanager |
111 | 65 | from wicd.guiutil import error, can_use_notify | 64 | import gui |
112 | 65 | from guiutil import error, can_use_notify | ||
113 | 66 | 66 | ||
114 | 67 | from wicd.translations import language | 67 | from wicd.translations import language |
115 | 68 | 68 | ||
116 | 69 | 69 | ||
117 | === modified file 'in/scripts=wicd-cli.in' | |||
118 | --- in/scripts=wicd-cli.in 2009-12-28 03:22:09 +0000 | |||
119 | +++ in/scripts=wicd-cli.in 2010-01-02 11:36:15 +0000 | |||
120 | @@ -1,2 +1,2 @@ | |||
121 | 1 | #!/bin/bash | 1 | #!/bin/bash |
123 | 2 | exec %PYTHON% -O %LIB%wicd-cli.py $@ | 2 | exec %PYTHON% -O %LIB%cli/wicd-cli.py $@ |
124 | 3 | 3 | ||
125 | === modified file 'in/scripts=wicd-client.in' | |||
126 | --- in/scripts=wicd-client.in 2009-12-28 03:22:09 +0000 | |||
127 | +++ in/scripts=wicd-client.in 2010-01-02 11:36:15 +0000 | |||
128 | @@ -41,5 +41,5 @@ | |||
129 | 41 | 41 | ||
130 | 42 | fi | 42 | fi |
131 | 43 | else | 43 | else |
133 | 44 | exec %PYTHON% -O %LIB%wicd-client.py $@ | 44 | exec %BIN%wicd-gtk |
134 | 45 | fi | 45 | fi |
135 | 46 | 46 | ||
136 | === modified file 'in/scripts=wicd-curses.in' | |||
137 | --- in/scripts=wicd-curses.in 2009-12-28 03:22:09 +0000 | |||
138 | +++ in/scripts=wicd-curses.in 2010-01-02 11:36:15 +0000 | |||
139 | @@ -6,4 +6,4 @@ | |||
140 | 6 | ln -s "%VARLIB%WHEREAREMYFILES" "$HOME/.wicd/WHEREAREMYFILES" | 6 | ln -s "%VARLIB%WHEREAREMYFILES" "$HOME/.wicd/WHEREAREMYFILES" |
141 | 7 | fi | 7 | fi |
142 | 8 | 8 | ||
144 | 9 | exec %PYTHON% -O %LIB%wicd-curses.py $@ | 9 | exec %PYTHON% -O %LIB%curses/wicd-curses.py $@ |
145 | 10 | 10 | ||
146 | === added file 'in/scripts=wicd-gtk.in' | |||
147 | --- in/scripts=wicd-gtk.in 1970-01-01 00:00:00 +0000 | |||
148 | +++ in/scripts=wicd-gtk.in 2010-01-02 11:36:15 +0000 | |||
149 | @@ -0,0 +1,15 @@ | |||
150 | 1 | #!/bin/sh | ||
151 | 2 | |||
152 | 3 | # check_firstrun() | ||
153 | 4 | if [ ! -d "$HOME/.wicd" ]; then | ||
154 | 5 | mkdir -p "$HOME/.wicd" | ||
155 | 6 | fi | ||
156 | 7 | # Make sure the user knows WHEREAREMYFILES ;-) | ||
157 | 8 | if [ -e "/var/lib/wicd/WHEREAREMYFILES" ] && [ ! -L "$HOME/.wicd/WHEREAREMYFILES" ]; then | ||
158 | 9 | ln -s "/var/lib/wicd/WHEREAREMYFILES" "$HOME/.wicd/WHEREAREMYFILES" | ||
159 | 10 | fi | ||
160 | 11 | |||
161 | 12 | PYTHONPATH=%LIB% | ||
162 | 13 | export PYTHONPATH | ||
163 | 14 | |||
164 | 15 | exec %PYTHON% -O %LIB%gtk/wicd-client.py $@ | ||
165 | 0 | 16 | ||
166 | === modified file 'in/scripts=wicd.in' | |||
167 | --- in/scripts=wicd.in 2009-12-28 03:22:09 +0000 | |||
168 | +++ in/scripts=wicd.in 2010-01-02 11:36:15 +0000 | |||
169 | @@ -1,3 +1,6 @@ | |||
170 | 1 | #!/bin/bash | 1 | #!/bin/bash |
171 | 2 | 2 | ||
173 | 3 | exec %PYTHON% -O %LIB%wicd-daemon.py $@ | 3 | PYTHONPATH=%LIB% |
174 | 4 | export PYTHONPATH | ||
175 | 5 | |||
176 | 6 | exec %PYTHON% -O %LIB%daemon/wicd-daemon.py $@ | ||
177 | 4 | 7 | ||
178 | === modified file 'in/wicd=wpath.py.in' | |||
179 | --- in/wicd=wpath.py.in 2009-11-21 18:06:46 +0000 | |||
180 | +++ in/wicd=wpath.py.in 2010-01-02 11:36:15 +0000 | |||
181 | @@ -44,6 +44,10 @@ | |||
182 | 44 | dbus = '%DBUS%' | 44 | dbus = '%DBUS%' |
183 | 45 | desktop = '%DESKTOP%' | 45 | desktop = '%DESKTOP%' |
184 | 46 | backends= '%BACKENDS%' | 46 | backends= '%BACKENDS%' |
185 | 47 | daemon = '%DAEMON%' | ||
186 | 48 | curses = '%CURSES%' | ||
187 | 49 | gtk = '%GTK%' | ||
188 | 50 | cli = '%CLI%' | ||
189 | 47 | translations = '%TRANSLATIONS%' | 51 | translations = '%TRANSLATIONS%' |
190 | 48 | icons = '%ICONS%' | 52 | icons = '%ICONS%' |
191 | 49 | autostart = '%AUTOSTART%' | 53 | autostart = '%AUTOSTART%' |
192 | 50 | 54 | ||
193 | === modified file 'setup.py' | |||
194 | --- setup.py 2010-01-02 07:44:48 +0000 | |||
195 | +++ setup.py 2010-01-02 11:36:15 +0000 | |||
196 | @@ -61,6 +61,10 @@ | |||
197 | 61 | ('bin=', None, 'set the bin directory'), | 61 | ('bin=', None, 'set the bin directory'), |
198 | 62 | ('sbin=', None, 'set the sbin directory'), | 62 | ('sbin=', None, 'set the sbin directory'), |
199 | 63 | ('backends=', None, 'set the backend storage directory'), | 63 | ('backends=', None, 'set the backend storage directory'), |
200 | 64 | ('daemon=', None, 'set the daemon directory'), | ||
201 | 65 | ('curses=', None, 'set the curses UI directory'), | ||
202 | 66 | ('gtk=', None, 'set the GTK UI directory'), | ||
203 | 67 | ('cli=', None, 'set the CLI directory'), | ||
204 | 64 | ('networks=', None, 'set the encryption configuration directory'), | 68 | ('networks=', None, 'set the encryption configuration directory'), |
205 | 65 | ('log=', None, 'set the log directory'), | 69 | ('log=', None, 'set the log directory'), |
206 | 66 | ('resume=', None, 'set the directory the resume from suspend script is stored in'), | 70 | ('resume=', None, 'set the directory the resume from suspend script is stored in'), |
207 | @@ -113,7 +117,11 @@ | |||
208 | 113 | self.encryption = self.etc + 'encryption/templates/' | 117 | self.encryption = self.etc + 'encryption/templates/' |
209 | 114 | self.bin = '/usr/bin/' | 118 | self.bin = '/usr/bin/' |
210 | 115 | self.sbin = '/usr/sbin/' | 119 | self.sbin = '/usr/sbin/' |
212 | 116 | self.backends = self.lib + 'backends' | 120 | self.daemon = self.share + 'daemon' |
213 | 121 | self.backends = self.share + 'backends' | ||
214 | 122 | self.curses = self.share + 'curses' | ||
215 | 123 | self.gtk = self.share + 'gtk' | ||
216 | 124 | self.cli = self.share + 'cli' | ||
217 | 117 | self.varlib = '/var/lib/wicd/' | 125 | self.varlib = '/var/lib/wicd/' |
218 | 118 | self.networks = self.varlib + 'configurations/' | 126 | self.networks = self.varlib + 'configurations/' |
219 | 119 | self.log = '/var/log/wicd/' | 127 | self.log = '/var/log/wicd/' |
220 | @@ -464,7 +472,7 @@ | |||
221 | 464 | 472 | ||
222 | 465 | data = [] | 473 | data = [] |
223 | 466 | py_modules=['wicd.networking','wicd.misc','wicd.wnettools', | 474 | py_modules=['wicd.networking','wicd.misc','wicd.wnettools', |
225 | 467 | 'wicd.wpath','wicd.prefs','wicd.netentry','wicd.dbusmanager', | 475 | 'wicd.wpath','wicd.dbusmanager', |
226 | 468 | 'wicd.logfile','wicd.backend','wicd.configmanager', | 476 | 'wicd.logfile','wicd.backend','wicd.configmanager', |
227 | 469 | 'wicd.translations'] | 477 | 'wicd.translations'] |
228 | 470 | 478 | ||
229 | @@ -478,7 +486,7 @@ | |||
230 | 478 | os.listdir('encryption/templates') if not b.startswith('.')]), | 486 | os.listdir('encryption/templates') if not b.startswith('.')]), |
231 | 479 | (wpath.networks, []), | 487 | (wpath.networks, []), |
232 | 480 | (wpath.sbin, ['scripts/wicd']), | 488 | (wpath.sbin, ['scripts/wicd']), |
234 | 481 | (wpath.lib, ['wicd/monitor.py', 'wicd/wicd-daemon.py', 'wicd/configscript.py', | 489 | (wpath.daemon, ['wicd/monitor.py', 'wicd/wicd-daemon.py', |
235 | 482 | 'wicd/suspend.py', 'wicd/autoconnect.py']), | 490 | 'wicd/suspend.py', 'wicd/autoconnect.py']), |
236 | 483 | (wpath.backends, ['wicd/backends/be-external.py', 'wicd/backends/be-ioctl.py']), | 491 | (wpath.backends, ['wicd/backends/be-external.py', 'wicd/backends/be-ioctl.py']), |
237 | 484 | (wpath.scripts, []), | 492 | (wpath.scripts, []), |
238 | @@ -488,11 +496,12 @@ | |||
239 | 488 | (wpath.postconnectscripts, []), | 496 | (wpath.postconnectscripts, []), |
240 | 489 | ] | 497 | ] |
241 | 490 | if not wpath.no_install_gtk: | 498 | if not wpath.no_install_gtk: |
242 | 491 | py_modules.extend(['wicd.gui', 'wicd.guiutil']) | ||
243 | 492 | data.append((wpath.desktop, ['other/wicd.desktop'])) | 499 | data.append((wpath.desktop, ['other/wicd.desktop'])) |
244 | 493 | data.append((wpath.bin, ['scripts/wicd-client'])) | 500 | data.append((wpath.bin, ['scripts/wicd-client'])) |
247 | 494 | data.append((wpath.share, ['data/wicd.glade'])) | 501 | data.append((wpath.bin, ['scripts/wicd-gtk'])) |
248 | 495 | data.append((wpath.lib, ['wicd/wicd-client.py'])) | 502 | data.append((wpath.gtk, ['gtk/wicd-client.py', 'gtk/netentry.py', 'gtk/prefs.py', |
249 | 503 | 'gtk/gui.py', 'gtk/guiutil.py', 'data/wicd.glade', | ||
250 | 504 | 'gtk/configscript.py'])) | ||
251 | 496 | data.append((wpath.autostart, ['other/wicd-tray.desktop'])) | 505 | data.append((wpath.autostart, ['other/wicd-tray.desktop'])) |
252 | 497 | if not wpath.no_install_man: | 506 | if not wpath.no_install_man: |
253 | 498 | data.append((wpath.mandir + 'man1/', [ 'man/wicd-client.1' ])) | 507 | data.append((wpath.mandir + 'man1/', [ 'man/wicd-client.1' ])) |
254 | @@ -510,18 +519,18 @@ | |||
255 | 510 | data.append((wpath.icons + '16x16/apps/', ['icons/16px/wicd-client.png'])) | 519 | data.append((wpath.icons + '16x16/apps/', ['icons/16px/wicd-client.png'])) |
256 | 511 | data.append((wpath.images, [('images/' + b) for b in os.listdir('images') if not b.startswith('.')])) | 520 | data.append((wpath.images, [('images/' + b) for b in os.listdir('images') if not b.startswith('.')])) |
257 | 512 | if not wpath.no_install_ncurses: | 521 | if not wpath.no_install_ncurses: |
263 | 513 | data.append((wpath.lib, ['curses/curses_misc.py'])) | 522 | data.append((wpath.curses, ['curses/curses_misc.py'])) |
264 | 514 | data.append((wpath.lib, ['curses/prefs_curses.py'])) | 523 | data.append((wpath.curses, ['curses/prefs_curses.py'])) |
265 | 515 | data.append((wpath.lib, ['curses/wicd-curses.py'])) | 524 | data.append((wpath.curses, ['curses/wicd-curses.py'])) |
266 | 516 | data.append((wpath.lib, ['curses/netentry_curses.py'])) | 525 | data.append((wpath.curses, ['curses/netentry_curses.py'])) |
267 | 517 | data.append((wpath.lib, ['curses/configscript_curses.py'])) | 526 | data.append((wpath.curses, ['curses/configscript_curses.py'])) |
268 | 518 | data.append((wpath.bin, ['scripts/wicd-curses'])) | 527 | data.append((wpath.bin, ['scripts/wicd-curses'])) |
269 | 519 | if not wpath.no_install_man: | 528 | if not wpath.no_install_man: |
270 | 520 | data.append(( wpath.mandir + 'man8/', ['man/wicd-curses.8'])) | 529 | data.append(( wpath.mandir + 'man8/', ['man/wicd-curses.8'])) |
271 | 521 | if not wpath.no_install_docs: | 530 | if not wpath.no_install_docs: |
272 | 522 | data.append(( wpath.docdir, ['curses/README.curses'])) | 531 | data.append(( wpath.docdir, ['curses/README.curses'])) |
273 | 523 | if not wpath.no_install_cli: | 532 | if not wpath.no_install_cli: |
275 | 524 | data.append((wpath.lib, ['cli/wicd-cli.py'])) | 533 | data.append((wpath.cli, ['cli/wicd-cli.py'])) |
276 | 525 | data.append((wpath.bin, ['scripts/wicd-cli'])) | 534 | data.append((wpath.bin, ['scripts/wicd-cli'])) |
277 | 526 | if not wpath.no_install_man: | 535 | if not wpath.no_install_man: |
278 | 527 | data.append(( wpath.mandir + 'man8/', ['man/wicd-cli.8'])) | 536 | data.append(( wpath.mandir + 'man8/', ['man/wicd-cli.8'])) |
279 | 528 | 537 | ||
280 | === modified file 'wicd/wicd-daemon.py' | |||
281 | --- wicd/wicd-daemon.py 2009-12-30 02:22:23 +0000 | |||
282 | +++ wicd/wicd-daemon.py 2010-01-02 11:36:15 +0000 | |||
283 | @@ -1790,7 +1790,7 @@ | |||
284 | 1790 | daemon = WicdDaemon(wicd_bus, auto_connect=auto_connect) | 1790 | daemon = WicdDaemon(wicd_bus, auto_connect=auto_connect) |
285 | 1791 | if not no_poll: | 1791 | if not no_poll: |
286 | 1792 | child_pid = Popen([misc.find_path("python"), "-O", | 1792 | child_pid = Popen([misc.find_path("python"), "-O", |
288 | 1793 | os.path.join(wpath.lib, "monitor.py")], | 1793 | os.path.join(wpath.lib, "daemon", "monitor.py")], |
289 | 1794 | shell=False, close_fds=True).pid | 1794 | shell=False, close_fds=True).pid |
290 | 1795 | atexit.register(on_exit, child_pid) | 1795 | atexit.register(on_exit, child_pid) |
291 | 1796 | 1796 |
This is what I'm doing in Debian, plus some others changes, like moving files from wicd/ to the newly created gtk/. Also, I added a "wicd-gtk" script.
This branch should work fine, even though I haven't tested the wicd-gtk script installation, nor if moving things from wicd/ to gtk/ broke something (yes, I updated setup.py for both cases). In Debian, I've reached this with Debian-specific packaging files (for Adam: debian/foo.install, and wicd-gtk is itself in debian/)
It would be extra cool if you merged this in time for 1.7.0 :)
Thank you,
David