changeset 62 | 00a196f8d14a |
parent 58 | a218553807ab |
child 65 | d659b8c2ed22 |
--- a/yml2c Thu Mar 19 14:54:23 2020 +0100 +++ b/yml2c Thu Mar 19 16:45:02 2020 +0100 @@ -1,1 +1,10 @@ -yml2/yml2c.py \ No newline at end of file +#!/usr/bin/env python3 +import sys, os +sys.path.insert(0, os.path.dirname(__file__)) +try: + from yml2 import yml2c +except ImportError as e: + import pkg_resources + pkg_resources.require('YML2') + from yml2 import yml2c +sys.exit(yml2c.main())