refactoring - correct namespaces, logic from profile.py moved to different files, calbacks partially fixed

This commit is contained in:
ingvar1995 2018-03-10 18:42:53 +03:00
parent 593e25efe5
commit 20bb694c7e
23 changed files with 1071 additions and 966 deletions

View file

@ -1,12 +1,10 @@
import sys
import app
from user_data.settings import *
from util import curr_directory, program_version, remove
from util.util import curr_directory, program_version, remove
import argparse
def clean():
"""Removes all windows libs from libs folder"""
d = curr_directory() + '/libs/'
@ -24,7 +22,7 @@ def main():
parser.add_argument('--reset')
args = parser.parse_args()
if not len(args):
toxygen = Toxygen()
toxygen = app.App()
else: # started with argument(s)
arg = sys.argv[1]
if arg == '--version':
@ -40,7 +38,7 @@ def main():
reset()
return
else:
toxygen = Toxygen(arg)
toxygen = app.App(arg)
toxygen.main()