mirror of https://github.com/Jittor/Jittor
polish JITTOR_HOME env
This commit is contained in:
parent
772bdfcdf2
commit
4c5ac0fda9
|
@ -9,7 +9,7 @@
|
|||
# file 'LICENSE.txt', which is part of this source code package.
|
||||
# ***************************************************************
|
||||
|
||||
__version__ = '1.3.4.4'
|
||||
__version__ = '1.3.4.5'
|
||||
from jittor_utils import lock
|
||||
with lock.lock_scope():
|
||||
ori_int = int
|
||||
|
|
|
@ -47,7 +47,7 @@ def home():
|
|||
_home_path = os.environ.get("JITTOR_HOME", default_path)
|
||||
|
||||
if not os.path.exists(_home_path):
|
||||
_home_path = default_path
|
||||
os.makedirs(_home_path, exist_ok=True)
|
||||
_home_path = os.path.abspath(_home_path)
|
||||
|
||||
# LOG.i(f"Use {_home_path} as Jittor Home")
|
||||
|
|
Loading…
Reference in New Issue