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-pipeline
csst_proto
Commits
b0765088
Commit
b0765088
authored
Oct 28, 2023
by
BO ZHANG
🏀
Browse files
move default config to data/
parent
628eb736
Pipeline
#1432
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_proto/config.py
View file @
b0765088
...
...
@@ -44,7 +44,7 @@ def read_config(config_path: Optional[str] = None) -> dict:
"""
# if config_path is specified, use it, otherwise use the default
if
config_path
is
None
:
config_path
:
str
=
os
.
path
.
join
(
HERE
,
"
config
"
,
"default_config.toml"
)
config_path
:
str
=
os
.
path
.
join
(
HERE
,
"
data
"
,
"default_config.toml"
)
# read the config file
config
:
dict
=
toml
.
load
(
config_path
)
return
config
csst_proto/
config
/default_config.toml
→
csst_proto/
data
/default_config.toml
View file @
b0765088
File moved
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