summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Finney <ben@benfinney.id.au>2010-02-03 18:59:45 +1100
committerBen Finney <ben@benfinney.id.au>2010-02-03 18:59:45 +1100
commit24bdb1797bc8a29f28d5f7796fc0ffed1cf5c668 (patch)
tree99f2ca08f258eca288c599c246d40d52f77b536b
parent16409981082f4271d83f1c1e53aa019851450c12 (diff)
downloadpython-coveragepy-git-24bdb1797bc8a29f28d5f7796fc0ffed1cf5c668.tar.gz
Use ‘os.path.join’ to join filesystem path components.
--HG-- branch : use-os-path-module
-rw-r--r--test/backtest.py3
1 files changed, 2 insertions, 1 deletions
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,