Don't crash if cwd==None

This commit is contained in:
Daniel Martí 2014-02-10 20:17:48 +01:00
parent 6e89e68f76
commit e5915072c0

View file

@ -1385,6 +1385,7 @@ def FDroidPopen(commands, cwd=None, output=True):
:returns: A PopenResult.
"""
if cwd:
cwd = os.path.normpath(cwd)
if output: