Skip to content

Commit f8254fd

Browse files
author
RepubblicaTech
committed
b45: Finalize code, prepare for Preview
1 parent 077a31a commit f8254fd

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

System/OS/Shell/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ def processInput(self, command, username):
1818
for command in self.jsonData['PyOS_Commands']:
1919
print(f'{command['name']}\n {command['desc']}\n')
2020
elif command == "ver":
21+
print(f"PythonOS version {self.sysVersionVars.version}", end='')
22+
if ("b" in self.sysVersionVars.version_semantic) or ("a" in self.sysVersionVars.version_semantic):
23+
print(f" Codename \"{self.sysVersionVars.codename}\"")
24+
2125
print(f"pyos-v{self.sysVersionVars.version_semantic}-k{self.sysVersionVars.kernel}")
2226

23-
if ("b" in self.sysVersionVars.version_semantic) or ("a" in self.sysVersionVars.version_semantic):
24-
print(f"Codename \"{self.sysVersionVars.codename}\"")
2527
elif command == "prsh":
2628
PrSHSession = prsh.PrintShell(username)
2729
elif command == "clear":

launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
3939
'''
4040

41-
if (prCheck.checkPkgs(packages=['pip', 'tqdm'])):
41+
if (prCheck.checkPkgs('pip', 'tqdm')):
4242
print("Required packages found.")
4343
pass
4444
else:

0 commit comments

Comments
 (0)