Remove debugging, more log copying fixes.

This commit is contained in:
Rob Nelson
2014-02-27 13:15:51 -08:00
parent 5d913ca22f
commit 6ef210aeac
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
/proc/copy_logs()
if(config.copy_logs)
ext_python("copy_logs.py", "data/logs \"[config.copy_logs]\"", log_command=1)
ext_python("copy_logs.py", "data/logs \"[config.copy_logs]\"")

View File

@@ -28,7 +28,7 @@ def replace_walk(in_dir,out_dir):
for root, dirnames, filenames in os.walk(in_dir):
for filename in fnmatch.filter(filenames, '*.log'):
path = os.path.join(root, filename)
to = os.path.join(out_dir, path.replace(in_dir, out_dir).replace(os.path.basename(path), ''))
to = path.replace(in_dir, out_dir).replace(os.path.basename(path), '')
to = os.path.join(to, filename)
path = os.path.abspath(path)
to = os.path.abspath(to)