Set basedir to . if there isn't one

This avoids special-casing '' = '.' everywhere the basedir gets used.
Fixes #1729.
This commit is contained in:
Daniel Hokka Zakrisson 2012-12-19 13:22:57 +01:00
parent 0f1706220b
commit 97cc384ccf
2 changed files with 2 additions and 4 deletions

View file

@ -49,8 +49,6 @@ class Connection(object):
vvv("EXEC %s" % cmd, host=self.host)
basedir = self.runner.basedir
if basedir == '':
basedir = '.'
p = subprocess.Popen(cmd, cwd=basedir, shell=True, stdin=None,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p.communicate()