Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ackness committed Aug 22, 2021
1 parent 9c66df8 commit 3cd9d50
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 16 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

setup(
name='szu-autoconnect',
packages=find_packages(include=['szu-autoconnect'], exclude=['build', 'dist']),
package_dir={'szu-autoconnect': 'szu-autoconnect'},
version='1.0.1',
packages=find_packages(),
version='1.0.2',
license='MIT',
description='A simple way to get different DEXs abis for block chains.',
author='Yong',
Expand Down
2 changes: 0 additions & 2 deletions szu-autoconnect/core/__init__.py

This file was deleted.

4 changes: 0 additions & 4 deletions szu-autoconnect/only_ui.py

This file was deleted.

1 change: 1 addition & 0 deletions szu_autoconnect/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from szu_autoconnect.core import auto, ui
File renamed without changes.
File renamed without changes.
8 changes: 3 additions & 5 deletions szu-autoconnect/core/ui.py → szu_autoconnect/core/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
import PySimpleGUI as sg
from apscheduler.schedulers.background import BlockingScheduler

from . import Connector
from szu_autoconnect.core.auto import Connector

# SETTINGS_FILE = path.join(path.dirname(__file__), r'settings.cfg')
SETTINGS_FILE = 'settings.cfg'
DEFAULT_SETTINGS = {
'username': '',
Expand Down Expand Up @@ -231,6 +230,5 @@ def main_loop():

window.close()


if __name__ == '__main__':
main_loop()
# if __name__ == '__main__':
# main_loop()
4 changes: 4 additions & 0 deletions szu_autoconnect/open_ui.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from szu_autoconnect.core.ui import main_loop

if __name__ == '__main__':
main_loop()
4 changes: 2 additions & 2 deletions szu-autoconnect/run.py → szu_autoconnect/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def build_config():

def create_job(configs):
import datetime
from .core.auto import Connector
from szu_autoconnect.core.auto import Connector
from apscheduler.schedulers.background import BlockingScheduler

assert configs.username != '', "please input your username with -u"
Expand All @@ -38,7 +38,7 @@ def create_job(configs):
def run():
config = build_config()
if config.use_ui:
from .core import main_loop
from szu_autoconnect.core.ui import main_loop

main_loop()
else:
Expand Down

0 comments on commit 3cd9d50

Please sign in to comment.