Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
V
vkbasalt-cli
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
Hari Rana
vkbasalt-cli
Commits
d3efee7a
Verified
Commit
d3efee7a
authored
2 years ago
by
Hari Rana
Browse files
Options
Downloads
Patches
Plain Diff
Use nested list for parsing config
parent
594a5da7
No related branches found
No related tags found
1 merge request
!2
Use get() instead of try catch since it's faster
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/vkbasalt.py
+1
-0
1 addition, 0 deletions
src/vkbasalt.py
with
1 addition
and
0 deletions
src/vkbasalt.py
+
1
−
0
View file @
d3efee7a
...
...
@@ -198,6 +198,7 @@ def ParseConfig(config):
for
line
in
f
:
name
=
[
x
.
strip
()
for
x
in
line
.
split
(
'
=
'
)]
if
name
[
0
]
==
"
effects
"
:
name
[
1
]
=
name
[
1
].
split
(
'
:
'
)
args
.
effects
=
name
[
1
]
elif
name
[
0
]
==
"
toggleKey
"
:
args
.
toggleKey
=
name
[
1
]
...
...
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