Fix broken osdk version command.

This commit is contained in:
Sleepy Monax 2023-02-26 20:26:33 +01:00 committed by Sleepy Monax
parent 7664a8a7f6
commit 56926d8897

View file

@ -145,7 +145,7 @@ cmds += [Cmd("h", "help", "Show this help message", helpCmd)]
def versionCmd(args: Args):
print(f"OSDK v{const.get_version()}\n")
print(f"OSDK v{const.VERSION}\n")
cmds += [Cmd("v", "version", "Show current version", versionCmd)]
@ -214,7 +214,8 @@ def initCmd(args: Args):
project_name = input("Project name: ")
description = input("Description: ")
to_create = ["src", "meta", os.path.join("meta", "targets"), os.path.join("meta", "plugins")]
to_create = ["src", "meta", os.path.join(
"meta", "targets"), os.path.join("meta", "plugins")]
os.mkdir(project_name.lower())
for directory in to_create: