2011-04-07 15:39:53 +00:00
|
|
|
With optimizations on, python will overwrite the nix store.
|
|
|
|
|
|
|
|
--- wicd-1.7.0/in/scripts=wicd.in 2011-04-05 14:31:09.733096865 -0400
|
|
|
|
+++ wicd-1.7.0/in/scripts=wicd.in 2011-04-05 14:31:16.397096864 -0400
|
|
|
|
@@ -1,3 +1,3 @@
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
-exec %PYTHON% -O %SHARE%daemon/wicd-daemon.py $@
|
|
|
|
+exec %PYTHON% -B %SHARE%daemon/wicd-daemon.py $@
|
|
|
|
|
2013-03-14 23:14:30 +00:00
|
|
|
--- wicd-1.7.2.4/wicd/wicd-daemon.py 2012-04-30 21:19:45.000000000 +0200
|
|
|
|
+++ wicd-1.7.2.4/wicd/wicd-daemon.pynew 2013-03-14 21:35:23.250306592 +0100
|
|
|
|
@@ -1812,7 +1812,7 @@
|
2011-04-07 15:39:53 +00:00
|
|
|
daemon = WicdDaemon(wicd_bus, auto_connect=auto_connect)
|
2013-03-14 23:14:30 +00:00
|
|
|
child_pid = None
|
2011-04-07 15:39:53 +00:00
|
|
|
if not no_poll:
|
2013-03-14 23:14:30 +00:00
|
|
|
- child_pid = Popen([wpath.python, "-O",
|
|
|
|
+ child_pid = Popen([wpath.python, "-B",
|
2011-04-07 15:39:53 +00:00
|
|
|
os.path.join(wpath.daemon, "monitor.py")],
|
|
|
|
shell=False, close_fds=True).pid
|
|
|
|
atexit.register(on_exit, child_pid)
|