diff --git a/no-python2.patch b/no-python2.patch index 8d91706..ad1b348 100644 --- a/no-python2.patch +++ b/no-python2.patch @@ -15,7 +15,7 @@ Index: daemonize-2.5.0/tests/test.py def setUp(self): self.pidfile = mkstemp()[1] - os.system("python tests/daemon_sigterm.py %s" % self.pidfile) -+ os.system(sys.executable + " tests/daemon_sigterm.py %s" % self.pidfile) ++ os.system("%s tests/daemon_sigterm.py %s" % (sys.executable, self.pidfile)) sleep(.1) def tearDown(self): @@ -24,7 +24,7 @@ Index: daemonize-2.5.0/tests/test.py self.pidfile = mkstemp()[1] print("First daemonize process started") - os.system("python tests/daemon_sigterm.py %s" % self.pidfile) -+ os.system(sys.executable + " tests/daemon_sigterm.py %s" % self.pidfile) ++ os.system("%s tests/daemon_sigterm.py %s" % (sys.executable, self.pidfile)) sleep(.1) def tearDown(self): @@ -42,7 +42,7 @@ Index: daemonize-2.5.0/tests/test.py self.pidfile = mkstemp()[1] self.logfile = mkstemp()[1] - os.system("python tests/daemon_keep_fds.py %s %s" % (self.pidfile, self.logfile)) -+ os.system(sys.executable + " tests/daemon_keep_fds.py %s %s" % (self.pidfile, self.logfile)) ++ os.system("%s tests/daemon_keep_fds.py %s %s" % (sys.executable, self.pidfile, self.logfile)) sleep(1) def tearDown(self):