diff --git a/src/templates_front/templator_front.org b/src/templates_front/templator_front.org index 0a98fba..89e7880 100644 --- a/src/templates_front/templator_front.org +++ b/src/templates_front/templator_front.org @@ -100,9 +100,10 @@ PYTREXIO_MAX_STR_LENGTH = 2048 # setuptools do not assign __version__ variable to the trexio package, so we set it manually from os import path __trexio_path__ = path.dirname(path.abspath(__file__)) -__pytrexio_path__ = path.join(__trexio_path__, 'pytrexio') -with open(path.join(__pytrexio_path__, '_version.py')) as version_file: +with open(path.join(path.join(__trexio_path__, 'pytrexio'), '_version.py')) as version_file: __version__ = version_file.read().split('"')[1] + +__trexio_path__ = None #+end_src * Coding conventions