Mercurial > repos > yating-l > jbrowsearchivecreator
comparison tracks/TrackStyles.py @ 32:7b955a58d8f2 draft
planemo upload for repository https://github.com/Yating-L/jbrowse-archive-creator.git commit 18da3c5b92673ba5030c24c981c6ca7ebe0bf097-dirty
| author | yating-l |
|---|---|
| date | Fri, 20 Oct 2017 11:22:21 -0400 |
| parents | 31a41ce128cc |
| children |
comparison
equal
deleted
inserted
replaced
| 31:127037c49bc8 | 32:7b955a58d8f2 |
|---|---|
| 32 cssFilePath = os.path.join(cssFolderPath, self.cssFileName) | 32 cssFilePath = os.path.join(cssFolderPath, self.cssFileName) |
| 33 if not os.path.exists(cssFilePath): | 33 if not os.path.exists(cssFilePath): |
| 34 if not os.path.exists(cssFolderPath): | 34 if not os.path.exists(cssFolderPath): |
| 35 os.mkdir(cssFolderPath) | 35 os.mkdir(cssFolderPath) |
| 36 os.mknod(cssFilePath) | 36 os.mknod(cssFilePath) |
| 37 os.chmod(cssFilePath, 0o755) | |
| 37 return cssFilePath | 38 return cssFilePath |
| 38 | 39 |
| 39 def _getCssTemplate(self): | 40 def _getCssTemplate(self): |
| 40 mylookup = TemplateLookup(directories=[os.path.join(self.tool_directory, 'templates')], | 41 mylookup = TemplateLookup(directories=[os.path.join(self.tool_directory, 'templates')], |
| 41 output_encoding='utf-8', encoding_errors='replace') | 42 output_encoding='utf-8', encoding_errors='replace') |
