Commit 60f2a320 authored by Tristan Van Berkom's avatar Tristan Van Berkom Assert that the loaded project name is a valid symbol name

Fixes issue #339
parent 1b4307f1
......@@ -256,6 +256,11 @@ class Project():
# The project name, element path and option declarations
# are constant and cannot be overridden by option conditional statements = _yaml.node_get(config, str, 'name')
# Validate that project name is a valid symbol name
_yaml.assert_symbol_name(_yaml.node_get_provenance(config, 'name'),, "project name")
self.element_path = os.path.join(,
_yaml.node_get(config, str, 'element-path')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment