yml2proc
author Claudio Luck <claudio.luck@pep.foundation>
Thu, 19 Mar 2020 16:47:39 +0100
changeset 65 d659b8c2ed22
parent 62 00a196f8d14a
parent 64 4e4782144f4f
permissions -rwxr-xr-x
Merge 2.6.3
31
d3dddb80d1f5 adapting to Python 3
Volker Birk <vb@pep-project.org>
parents: 29
diff changeset
     1
#!/usr/bin/env python3
62
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__))
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     4
try:
62
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     5
    from yml2 import yml2proc
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
     6
except ModuleNotFoundError:
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 yml2proc
00a196f8d14a Merge 2.6.3
Claudio Luck <claudio.luck@pep.foundation>
parents: 58
diff changeset
    10
sys.exit(yml2proc.main())