Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
AVVR-Pipeline-GDP4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GDP Project 4
AVVR-Pipeline-GDP4
Commits
419b971f
Commit
419b971f
authored
7 months ago
by
mhby1g21
Browse files
Options
Downloads
Patches
Plain Diff
modified config_reader utils to work with GUI.py
parent
3b7b282b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!7
4.3.1 - Redesign GUI and remove .bat dependencies and GDP 4.3.3 - Delete Temporary Files On Main Pipeline Run on new GUI.py
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/debug_tool/utils/config_reader.py
+14
-3
14 additions, 3 deletions
scripts/debug_tool/utils/config_reader.py
with
14 additions
and
3 deletions
scripts/debug_tool/utils/config_reader.py
+
14
−
3
View file @
419b971f
...
@@ -13,17 +13,28 @@ class ConfigReader:
...
@@ -13,17 +13,28 @@ class ConfigReader:
def
read_config
(
self
):
def
read_config
(
self
):
config
=
{}
config
=
{}
#
Use config.ini from scripts directory
#
First try normal path
config_path
=
os
.
path
.
join
(
self
.
PIPELINE_DIR
,
"
config.ini
"
)
config_path
=
os
.
path
.
join
(
self
.
PIPELINE_DIR
,
"
config.ini
"
)
try
:
try
:
with
open
(
config_path
,
'
r
'
)
as
f
:
with
open
(
config_path
,
'
r
'
)
as
f
:
for
line
in
f
:
for
line
in
f
:
if
'
=
'
in
line
:
if
'
=
'
in
line
:
key
,
value
=
line
.
strip
().
split
(
'
=
'
,
1
)
key
,
value
=
line
.
strip
().
split
(
'
=
'
,
1
)
config
[
key
.
strip
()]
=
value
.
strip
()
config
[
key
.
strip
()]
=
value
.
strip
()
return
config
except
FileNotFoundError
:
except
FileNotFoundError
:
raise
Exception
(
f
"
config.ini not found in
{
self
.
PIPELINE_DIR
}
"
)
# If not found, try scripts directory
scripts_config
=
os
.
path
.
join
(
self
.
ROOT_DIR
,
"
scripts
"
,
"
config.ini
"
)
try
:
with
open
(
scripts_config
,
'
r
'
)
as
f
:
for
line
in
f
:
if
'
=
'
in
line
:
key
,
value
=
line
.
strip
().
split
(
'
=
'
,
1
)
config
[
key
.
strip
()]
=
value
.
strip
()
return
config
return
config
except
FileNotFoundError
:
raise
Exception
(
f
"
config.ini not found in
{
self
.
PIPELINE_DIR
}
or
{
os
.
path
.
dirname
(
scripts_config
)
}
"
)
def
setup_directories
(
self
):
def
setup_directories
(
self
):
return
{
return
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment