[Update] 整理 copyright 和 版本

This commit is contained in:
ibuler
2019-03-27 17:46:35 +08:00
parent f97bfa7bf1
commit a31775dd23
9 changed files with 25 additions and 17 deletions

3
jms
View File

@@ -13,7 +13,8 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, BASE_DIR)
try:
from apps import __version__
from apps.jumpserver import const
__version__ = const.VERSION
except ImportError as e:
print("Not found __version__: {}".format(e))
print("Sys path: {}".format(sys.path))