yml2c
author Claudio Luck <claudio.luck@pep.foundation>
Thu, 19 Mar 2020 16:45:02 +0100
changeset 62 00a196f8d14a
parent 58 a218553807ab
child 65 d659b8c2ed22
permissions -rwxr-xr-x
Merge 2.6.3
62
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     1
#!/usr/bin/env python3
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     2
import sys, os
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     3
sys.path.insert(0, os.path.dirname(__file__))
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     4
try:
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     5
    from yml2 import yml2c
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     6
except ImportError as e:
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     7
    import pkg_resources
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     8
    pkg_resources.require('YML2')
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     9
    from yml2 import yml2c
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
    10
sys.exit(yml2c.main())