Add print of current directory for command in the log file.

This commit is contained in:
Matthieu Gautier 2017-03-13 18:17:42 +01:00
parent 59125244bf
commit 9d45158f42
1 changed files with 1 additions and 0 deletions

View File

@ -382,6 +382,7 @@ class BuildEnv:
if not self.options.verbose:
log = open(context.log_file, 'w')
print("run command '{}'".format(command), file=log)
print("current directory is '{}'".format(cwd), file=log)
print("env is :", file=log)
for k, v in env.items():
print(" {} : {!r}".format(k, v), file=log)