aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-for-type-punning-warnings.py5
-rwxr-xr-xscripts/load_every_help.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/scripts/check-for-type-punning-warnings.py b/scripts/check-for-type-punning-warnings.py
index 93f564d2..cf4f7136 100755
--- a/scripts/check-for-type-punning-warnings.py
+++ b/scripts/check-for-type-punning-warnings.py
@@ -21,7 +21,8 @@ for log in glob.glob('/var/www/auto-build/' + date + '/logs/20*.txt'):
.replace('/Users/pd/auto-build/', ''))
f.close()
-lf = open('/tmp/'+outputfilename, 'w')
+outputfile = '/tmp/' + outputfilename
+lf = open(outputfile, 'w')
for line in logoutput:
lf.write(line)
lf.close()
@@ -42,7 +43,7 @@ mailoutput.append('http://autobuild.puredata.info/auto-build/' + date + '/logs/'
# upload the log file to the autobuild website
rsyncfile = 'rsync://128.238.56.50/upload/' + date + '/logs/' + outputfilename
try:
- p = subprocess.Popen(['rsync', '-ax', '/tmp/'+outputfilename, rsyncfile],
+ p = subprocess.Popen(['rsync', '-ax', outputfile, rsyncfile],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait()
except:
mailoutput.append('rsync upload of the log failed!\n')
diff --git a/scripts/load_every_help.py b/scripts/load_every_help.py
index fc18d6dd..38de996d 100755
--- a/scripts/load_every_help.py
+++ b/scripts/load_every_help.py
@@ -193,7 +193,7 @@ mailoutput.append('http://autobuild.puredata.info/auto-build/' + date + '/logs/'
# upload the log file to the autobuild website
rsyncfile = 'rsync://128.238.56.50/upload/' + date + '/logs/' + outputfilename
try:
- p = subprocess.Popen(['rsync', '-ax', outputfilename, rsyncfile],
+ p = subprocess.Popen(['rsync', '-ax', outputfile, rsyncfile],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait()
except:
mailoutput.append('rsync upload of the log failed!\n')