Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-api
Commits
be2492dc
Commit
be2492dc
authored
Dec 09, 2023
by
Wei Shoulin
Browse files
fix version bug
parent
a1f4d9c0
Pipeline
#2161
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api/common/delegate.py
View file @
be2492dc
...
@@ -21,7 +21,7 @@ class Delegate(object):
...
@@ -21,7 +21,7 @@ class Delegate(object):
log
.
warn
(
"enviroment variable CSST_DFS_API_MODE is not set, use default: /opt/temp/csst"
)
log
.
warn
(
"enviroment variable CSST_DFS_API_MODE is not set, use default: /opt/temp/csst"
)
self
.
local_path
=
"/opt/temp/csst"
self
.
local_path
=
"/opt/temp/csst"
try
:
try
:
from
csst_dfs_api_local.
_
version
import
version
as
local_version
from
csst_dfs_api_local.version
import
__
version
__
as
local_version
except
ImportError
:
except
ImportError
:
raise
CSSTFatalException
(
"please install csst_dfs_api_local firstly."
)
raise
CSSTFatalException
(
"please install csst_dfs_api_local firstly."
)
...
@@ -30,7 +30,7 @@ class Delegate(object):
...
@@ -30,7 +30,7 @@ class Delegate(object):
if
not
self
.
gateway
:
if
not
self
.
gateway
:
raise
CSSTGenericException
(
"enviroment variable CSST_DFS_GATEWAY is not set"
)
raise
CSSTGenericException
(
"enviroment variable CSST_DFS_GATEWAY is not set"
)
try
:
try
:
from
csst_dfs_api_cluster.
_
version
import
version
as
cluster_version
from
csst_dfs_api_cluster.version
import
__
version
__
as
cluster_version
except
ImportError
:
except
ImportError
:
raise
CSSTFatalException
(
"please install csst_dfs_api_cluster firstly."
)
raise
CSSTFatalException
(
"please install csst_dfs_api_cluster firstly."
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment