Skip to content

Commit

Permalink
Merge pull request #973 from galaxyproject/training
Browse files Browse the repository at this point in the history
Update a training command
  • Loading branch information
nsoranzo committed Nov 21, 2019
2 parents ed7f992 + a86a797 commit ceb22c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions planemo/training/tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ def export_workflow_file(self):
"""Copy or extract workflow file and add it to the tutorial directory."""
if not os.path.exists(self.wf_dir):
os.makedirs(self.wf_dir)
if not os.path.exists(os.path.join(self.wf_dir, 'index.md')):
with open(os.path.join(self.wf_dir, 'index.md'), 'w') as handle:
handle.write('---\nlayout: workflow-list\n---\n')
if self.init_wf_fp:
shutil.copy(self.init_wf_fp, self.wf_fp)
elif self.init_wf_id:
Expand Down

0 comments on commit ceb22c8

Please sign in to comment.