Mercurial > repos > pablocarb > synbiodesign
comparison toolRPViz.py @ 21:cb029043c1d6 draft
planemo upload commit 87db86a34f2d92eb2c9756bf9ee53ae2970554d5-dirty
author | pablocarb |
---|---|
date | Thu, 13 Jun 2019 09:52:15 -0400 |
parents | f3a219de2d1b |
children | b30e3e5ee8f8 |
comparison
equal
deleted
inserted
replaced
20:f3a219de2d1b | 21:cb029043c1d6 |
---|---|
35 html = res['data']['html'] | 35 html = res['data']['html'] |
36 with open(outfile, 'w') as h: | 36 with open(outfile, 'w') as h: |
37 h.write(html) | 37 h.write(html) |
38 print( 'Success!') | 38 print( 'Success!') |
39 | 39 |
40 def testHTML(f, outfile): | |
41 content = open(f).read() | |
42 with open(outfile, 'w') as h: | |
43 outfile.write(content) | |
44 | |
45 | 40 |
46 if __name__ == "__main__": | 41 if __name__ == "__main__": |
47 parser = arguments() | 42 parser = arguments() |
48 arg = parser.parse_args() | 43 arg = parser.parse_args() |
49 assert os.path.exists(arg.infile) | 44 assert os.path.exists(arg.infile) |
50 testHTML( 'outfile.html', arg.outfile ) | 45 pathwayUpload( arg.infile, arg.outfile, arg.server ) |
51 # pathwayUpload( arg.infile, arg.outfile, arg.server ) |