diff --git a/unitest-restful.py b/unitest-restful.py index efd7e572..82ce53fc 100755 --- a/unitest-restful.py +++ b/unitest-restful.py @@ -79,7 +79,7 @@ class TestGlances(unittest.TestCase): global pid - cmdline = "/usr/bin/python -m glances -w -p %s" % SERVER_PORT + cmdline = "/usr/bin/env python -m glances -w -p %s" % SERVER_PORT print("Run the Glances Web Server on port %s" % SERVER_PORT) args = shlex.split(cmdline) pid = subprocess.Popen(args) diff --git a/unitest-xmlrpc.py b/unitest-xmlrpc.py index a6ea3083..6e71279e 100755 --- a/unitest-xmlrpc.py +++ b/unitest-xmlrpc.py @@ -86,7 +86,7 @@ class TestGlances(unittest.TestCase): global pid - cmdline = "/usr/bin/python -m glances -s -p %s" % SERVER_PORT + cmdline = "/usr/bin/env python -m glances -s -p %s" % SERVER_PORT print("Run the Glances Server on port %s" % SERVER_PORT) args = shlex.split(cmdline) pid = subprocess.Popen(args)