Debug
This commit is contained in:
@@ -40,7 +40,7 @@ if __name__ == "__main__":
|
||||
ui.username_box.setText(loginload())
|
||||
|
||||
|
||||
# Functions
|
||||
# Connected functions
|
||||
def refresh_gui():
|
||||
installed_apps()
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Idea from rich examples
|
||||
# https://github.com/Textualize/rich/blob/master/examples/downloader.py
|
||||
|
||||
import os.path
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
import signal
|
||||
|
||||
@@ -97,6 +97,9 @@ codes = {'CONTINUE': 100,
|
||||
}
|
||||
|
||||
|
||||
def handle(code):
|
||||
def handle(code) -> list:
|
||||
"""Prints and the status code in another way and code from args.
|
||||
If it was number code returns list with message and code and if it was string code
|
||||
returns list with code and message"""
|
||||
print(codes[code])
|
||||
return [codes[code], code]
|
||||
|
||||
@@ -29,7 +29,6 @@ def install(package):
|
||||
os.makedirs('{1}apps\{0}'.format(r['name'], horsy_vars.horsypath))
|
||||
|
||||
# Get all download files urls
|
||||
print(f"Downloading {r['url'].split('/')[-1]}")
|
||||
to_download = [r['url']]
|
||||
if r['download']:
|
||||
print(f"Found dependency")
|
||||
|
||||
@@ -3,4 +3,4 @@ import os
|
||||
|
||||
protocol = "https://"
|
||||
server_url = 'horsy.ml'
|
||||
horsypath = os.popen('echo %HORSYPATH%').read().replace('\n', '') + '/'
|
||||
horsypath = os.popen('echo %HORSYPATH%').read().replace('\n', '') + '\\'
|
||||
|
||||
Reference in New Issue
Block a user