summaryrefslogtreecommitdiff
path: root/tox
diff options
context:
space:
mode:
authorholger krekel <holger@merlinux.eu>2015-04-28 12:20:07 +0200
committerholger krekel <holger@merlinux.eu>2015-04-28 12:20:07 +0200
commit93a94fc532955f0134b4535546af15871ef7dd65 (patch)
tree699270610f9fcb58111eea6794a83115bb9cb386 /tox
parentdf8555a4febf9769b95c63d338fae7a8bba668ed (diff)
downloadtox-93a94fc532955f0134b4535546af15871ef7dd65.tar.gz
fix issue240: allow to specify empty argument list without it being
rewritten to ".". Thanks Daniel Hahler.
Diffstat (limited to 'tox')
-rw-r--r--tox/_config.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tox/_config.py b/tox/_config.py
index afd2c55..4468d86 100644
--- a/tox/_config.py
+++ b/tox/_config.py
@@ -373,9 +373,10 @@ class parseini:
if vc.args_are_paths:
args = []
for arg in config.option.args:
- origpath = config.invocationcwd.join(arg, abs=True)
- if origpath.check():
- arg = vc.changedir.bestrelpath(origpath)
+ if arg:
+ origpath = config.invocationcwd.join(arg, abs=True)
+ if origpath.check():
+ arg = vc.changedir.bestrelpath(origpath)
args.append(arg)
reader.addsubstitutions(args)
setenv = {}