Skip to content
Snippets Groups Projects
Verified Commit 78f96cbe authored by Hari Rana's avatar Hari Rana :speech_balloon:
Browse files

Move function declarations in main

parent 8b4e2540
No related branches found
No related tags found
No related merge requests found
......@@ -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)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment