提交 05060d0d authored 作者: Frederic's avatar Frederic

modify do_nightly_build_send to allow to specify where to get the files to send.

上级 f9c3d2b5
...@@ -10,20 +10,22 @@ family=['theano-buildbot@googlegroups.com'] ...@@ -10,20 +10,22 @@ family=['theano-buildbot@googlegroups.com']
me='lisa@iro.umontreal.ca' me='lisa@iro.umontreal.ca'
#Those file contain the output of the do_nightly_build script. #Those file contain the output of the do_nightly_build script.
files=["/tmp/do_nightly_build_theano", "/tmp/do_nightly_build_pylearn", files=["do_nightly_build_theano", "do_nightly_build_pylearn",
"/tmp/do_nightly_build_deeplearning", "/tmp/do_nightly_build_pylearn2", "do_nightly_build_deeplearning", "do_nightly_build_pylearn2",
"/tmp/do_nightly_build_theano_python2.4", "do_nightly_build_theano_python2.4",
"/tmp/do_nightly_build_theano_python3.3.0", "do_nightly_build_theano_python3.3.0",
] ]
msgs=['Theano buildbot', 'Pylearn buildbot', 'Deep Learning Tutorial buildbot', msgs=['Theano buildbot', 'Pylearn buildbot', 'Deep Learning Tutorial buildbot',
'Pylearn2 buildbot', 'Theano Python2.4 buildbot', 'Theano Python3.3.0 buildbot'] 'Pylearn2 buildbot', 'Theano Python2.4 buildbot', 'Theano Python3.3.0 buildbot']
print files print 'files', files
print msgs print "msgs", msgs
print sys.argv print "args", sys.argv
if len(sys.argv)==2: if len(sys.argv)==2:
files=[x+sys.argv[1] for x in files] files=[os.path.join(sys.argv[1], x) for x in files]
print files else:
files=[os.path.join('/tmp', x) for x in files]
print 'path', files
# Here are the email package modules we'll need # Here are the email package modules we'll need
from email.mime.text import MIMEText from email.mime.text import MIMEText
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论