Skip to content

Commit

Permalink
changed yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bojunliu0818 committed Apr 17, 2022
1 parent af38cb3 commit 9e18e6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion msmbuilder/io/project_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,14 @@ def get_source(self, environment, template):
return source, filename, uptodate

end = source[beg:].find(end_str) + beg

# yaml update
try:
self.meta[filename] = yaml.load(source[beg + len(beg_str):end])
except:
from yaml.loader import Loader
self.meta[filename] = yaml.load(source[beg + len(beg_str):end],Loader=Loader)

self.meta[filename] = yaml.load(source[beg + len(beg_str):end])
remove_meta = source[:beg] + source[end:]
return remove_meta, filename, uptodate

Expand Down

0 comments on commit 9e18e6a

Please sign in to comment.