Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed May 31, 2016
1 parent bbec5a6 commit 2a89531
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zope/wineggbuilder/lxml.py
Expand Up @@ -84,13 +84,14 @@ def extract(fname, target, targetname):

def do(command, cwd=None):
tmpfile = None
LOGGER.debug('%s in %s', command, cwd)
if len(command.splitlines()) > 1:
#in case there are more lines we got to do .bat file
tmpfile = tempfile.mktemp(suffix='.bat')
open(tmpfile, "w").write(command)
command = tmpfile
LOGGER.debug('running as %s', command)

LOGGER.debug('%s in %s', command, cwd)
try:
output = base.Command(cwd=cwd).do(command)
finally:
Expand Down

0 comments on commit 2a89531

Please sign in to comment.