We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06970d1 + 7948aea commit 6535ba8Copy full SHA for 6535ba8
autolab_core/yaml_config.py
@@ -70,7 +70,8 @@ def iteritems(self):
70
71
def save(self, filename):
72
""" Save a YamlConfig to disk. """
73
- yaml.dump(self, open(filename, 'w'))
+ y = yaml.YAML()
74
+ y.dump(self.config, open(filename, 'w'))
75
76
def _load_config(self, filename):
77
"""Loads a yaml configuration file from the given filename.
@@ -91,7 +92,7 @@ def _load_config(self, filename):
91
92
def recursive_load(matchobj, path):
93
first_spacing = matchobj.group(1)
94
other_spacing = first_spacing.replace('-', ' ')
- fname = os.path.join(path, matchobj.group(2))
95
+ fname = os.path.join(path, matchobj.group(2).rstrip())
96
new_path, _ = os.path.split(fname)
97
new_path = os.path.realpath(new_path)
98
text = ''
0 commit comments