diff options
| author | Ben Finney <ben@benfinney.id.au> | 2010-02-03 18:59:45 +1100 |
|---|---|---|
| committer | Ben Finney <ben@benfinney.id.au> | 2010-02-03 18:59:45 +1100 |
| commit | 8efcf6c1745f9e3a3acfc15b68efade1ab4ead20 (patch) | |
| tree | edb5c42983dea78eb58be0a7f587e334c0aed9ae | |
| parent | a325b7182896b714752091c01779a8bed6d943e4 (diff) | |
| download | python-coveragepy-8efcf6c1745f9e3a3acfc15b68efade1ab4ead20.tar.gz | |
Use ‘os.path.join’ to join filesystem path components.
| -rw-r--r-- | test/backtest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/backtest.py b/test/backtest.py index 12bdbc9..58b1647 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, |
