updated grpc client to have a proxy flag, updated coretk script to have a flag to enable proxy, disabled by default
This commit is contained in:
parent
583a552bdb
commit
d4bce0d25c
4 changed files with 18 additions and 8 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
import argparse
|
||||
import logging
|
||||
|
||||
from core.gui import appconfig
|
||||
|
@ -6,10 +7,18 @@ from core.gui.app import Application
|
|||
from core.gui.images import Images
|
||||
|
||||
if __name__ == "__main__":
|
||||
# parse flags
|
||||
parser = argparse.ArgumentParser(description=f"CORE Python Tk GUI")
|
||||
parser.add_argument("-p", "--proxy", action="store_true", help="enable proxy")
|
||||
args = parser.parse_args()
|
||||
|
||||
# setup logging
|
||||
log_format = "%(asctime)s - %(levelname)s - %(module)s:%(funcName)s - %(message)s"
|
||||
logging.basicConfig(level=logging.DEBUG, format=log_format)
|
||||
logging.getLogger("PIL").setLevel(logging.ERROR)
|
||||
|
||||
# start app
|
||||
Images.load_all()
|
||||
appconfig.check_directory()
|
||||
app = Application()
|
||||
app = Application(args.proxy)
|
||||
app.mainloop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue