Skip to content

Commit

Permalink
update foliaspec2json
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Apr 2, 2019
1 parent 7f098b6 commit 5ad9178
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions foliatools/foliaspec2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
import yaml

#Load specification
specfiles= [ os.path.join(os.path.dirname(__file__) ,'../schemas/folia.yml'), 'folia.yml' ]
spec = None
for specfile in specfiles:
spec = yaml.load(open(specfile,'r'))
break
spec = yaml.load(open(sys.argv[1],'r'))

if spec is None:
print("FoLiA Specification file folia.yml could not be found in " + ", ".join(specfiles) ,file=sys.stderr)
Expand Down

0 comments on commit 5ad9178

Please sign in to comment.