From 24bdb1797bc8a29f28d5f7796fc0ffed1cf5c668 Mon Sep 17 00:00:00 2001 From: Ben Finney Date: Wed, 3 Feb 2010 18:59:45 +1100 Subject: =?UTF-8?q?Use=20=E2=80=98os.path.join=E2=80=99=20to=20join=20file?= =?UTF-8?q?system=20path=20components.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- branch : use-os-path-module --- test/backtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/backtest.py') diff --git a/test/backtest.py b/test/backtest.py index 12bdbc97..58b16474 100644 --- a/test/backtest.py +++ b/test/backtest.py @@ -29,7 +29,8 @@ else: if sys.hexversion > 0x03000000 and cmd.startswith("coverage "): # We don't have a coverage command on 3.x, so fix it up to call the # script. Eventually we won't need this. - cmd = "python " + sys.prefix + os.sep + "Scripts" + os.sep + cmd + script_path = os.path.join(sys.prefix, "Scripts", cmd) + cmd = "python " + script_path proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, -- cgit v1.2.1