mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-22 20:35:44 +01:00
do not reveal paths to trexio (security concerns)
This commit is contained in:
parent
12dd1fd8dc
commit
d060808467
@ -100,9 +100,10 @@ PYTREXIO_MAX_STR_LENGTH = 2048
|
|||||||
# setuptools do not assign __version__ variable to the trexio package, so we set it manually
|
# setuptools do not assign __version__ variable to the trexio package, so we set it manually
|
||||||
from os import path
|
from os import path
|
||||||
__trexio_path__ = path.dirname(path.abspath(__file__))
|
__trexio_path__ = path.dirname(path.abspath(__file__))
|
||||||
__pytrexio_path__ = path.join(__trexio_path__, 'pytrexio')
|
with open(path.join(path.join(__trexio_path__, 'pytrexio'), '_version.py')) as version_file:
|
||||||
with open(path.join(__pytrexio_path__, '_version.py')) as version_file:
|
|
||||||
__version__ = version_file.read().split('"')[1]
|
__version__ = version_file.read().split('"')[1]
|
||||||
|
|
||||||
|
__trexio_path__ = None
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Coding conventions
|
* Coding conventions
|
||||||
|
Loading…
Reference in New Issue
Block a user