Skip to content
Snippets Groups Projects
Commit 583e5310 authored by carignani's avatar carignani
Browse files

init

parents
No related branches found
No related tags found
No related merge requests found
main.py 0 → 100755
#!/usr/bin/python2.7
import toscaparser
import sys
import os
import toscaparser.yaml
print "Opening file " + sys.argv[1]
#res = toscaparser.validate(sys.argv[1])
#templ = toscaparser.tosca_template.ToscaTemplate(os.path.join(
# os.path.dirname(os.path.abspath(__file__)),
# 'data',
# sys.argv[1]))
yaml_data = open(sys.argv[1]).read()
templ = yaml.simple_ordered_parse(yaml_data)
def get_datatypes(t):
return t['data_types']
for datatype in get_datatypes(templ):
print i
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment