Skip to content

Commit 9e18e6a

Browse files
committed
changed yaml
1 parent af38cb3 commit 9e18e6a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

msmbuilder/io/project_template.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,14 @@ def get_source(self, environment, template):
151151
return source, filename, uptodate
152152

153153
end = source[beg:].find(end_str) + beg
154+
155+
# yaml update
156+
try:
157+
self.meta[filename] = yaml.load(source[beg + len(beg_str):end])
158+
except:
159+
from yaml.loader import Loader
160+
self.meta[filename] = yaml.load(source[beg + len(beg_str):end],Loader=Loader)
154161

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

0 commit comments

Comments
 (0)