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
78f96cbe
Verified
Commit
78f96cbe
authored
2 years ago
by
Hari Rana
Browse files
Options
Downloads
Patches
Plain Diff
Move function declarations in main
parent
8b4e2540
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.py
+9
-8
9 additions, 8 deletions
src/main.py
with
9 additions
and
8 deletions
src/main.py
+
9
−
8
View file @
78f96cbe
...
...
@@ -20,14 +20,6 @@ import sys
import
argparse
from
shutil
import
copyfile
file
=
[]
tmp_dir
=
"
/tmp/vkBasalt.conf
"
install_paths
=
[
"
/usr/lib/extensions/vulkan/vkBasalt/etc/vkBasalt
"
,
"
/usr/local
"
,
"
/usr/share/vkBasalt
"
]
# Arguments
def
main
(
argv
):
parser
=
argparse
.
ArgumentParser
(
description
=
"
a utility to pass arguments to vkBasalt
"
)
...
...
@@ -85,6 +77,15 @@ def main(argv):
help
=
"
execute command
"
)
args
=
parser
.
parse_args
()
# Declare functions
file
=
[]
tmp_dir
=
"
/tmp/vkBasalt.conf
"
install_paths
=
[
"
/usr/lib/extensions/vulkan/vkBasalt/etc/vkBasalt
"
,
"
/usr/local
"
,
"
/usr/share/vkBasalt
"
]
# Apply default settings if possible
if
args
.
default
:
for
i
in
range
(
len
(
install_paths
)):
...
...
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