From a7c59de7d75cc7841329afceb3d08eeda05d460e Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Sun, 5 Dec 2021 22:42:53 -0500 Subject: [PATCH] Re-add the utility script version of the compatiblizemod submodule. --- utilities/compatiblizemod.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 utilities/compatiblizemod.py diff --git a/utilities/compatiblizemod.py b/utilities/compatiblizemod.py new file mode 100755 index 0000000..29fc97b --- /dev/null +++ b/utilities/compatiblizemod.py @@ -0,0 +1,23 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- +''' +This script uses the pyenliven.compatiblizemod submodule to try to make +the mod +''' +import re +import sys +import os + +myDir = os.path.dirname(os.path.realpath(__file__)) +repoDir = os.path.dirname(myDir) +# try: +# from pyenliven.compatiblizemod import main +# except ModuleNotFoundError: +if os.path.isdir(os.path.join(repoDir, "pyenliven")): + sys.path.append(repoDir) + +from pyenliven.compatiblizemod import main + +if __name__ == '__main__': + # sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main())