From d0608084674f55110788282d4f810b150bf43afe Mon Sep 17 00:00:00 2001 From: q-posev Date: Sun, 12 Sep 2021 13:36:24 +0200 Subject: [PATCH] do not reveal paths to trexio (security concerns) --- src/templates_front/templator_front.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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