comparison rgedgeR/rgToolFactory.py @ 6:cd586457aced draft

Uploaded
author fubar
date Sat, 27 Jul 2013 01:07:52 -0400
parents 2122e630b13a
children 372ce0323554
comparison
equal deleted inserted replaced
5:f1e6a5f8a611 6:cd586457aced
114 self.useIM = cmd_exists('convert') 114 self.useIM = cmd_exists('convert')
115 self.useGS = cmd_exists('gs') 115 self.useGS = cmd_exists('gs')
116 self.treatbashSpecial = treatbashSpecial 116 self.treatbashSpecial = treatbashSpecial
117 if opts.output_dir: # simplify for the tool tarball 117 if opts.output_dir: # simplify for the tool tarball
118 os.chdir(opts.output_dir) 118 os.chdir(opts.output_dir)
119 self.thumbformat = 'jpg' 119 self.thumbformat = 'png'
120 self.opts = opts 120 self.opts = opts
121 self.toolname = re.sub('[^a-zA-Z0-9_]+', '', opts.tool_name) # a sanitizer now does this but.. 121 self.toolname = re.sub('[^a-zA-Z0-9_]+', '', opts.tool_name) # a sanitizer now does this but..
122 self.toolid = self.toolname 122 self.toolid = self.toolname
123 self.myname = sys.argv[0] # get our name because we write ourselves out as a tool later 123 self.myname = sys.argv[0] # get our name because we write ourselves out as a tool later
124 self.pyfile = self.myname # crude but efficient - the cruft won't hurt much 124 self.pyfile = self.myname # crude but efficient - the cruft won't hurt much