Commit d64fb912 authored by Phillip Thelen's avatar Phillip Thelen Committed by Franziska Koehn
Browse files

add option to gui launcher to select gui

parent 151f3ea0
......@@ -6,6 +6,12 @@ if __name__ == "__main__":
parser = ArgumentParser(description='search and download gui')
parser.add_argument('--host', type=str, help='hostname or ip-address (including port).', default="http://localhost:8080")
parser.add_argument('--user', type=str, help='user:passw', default=":")
parser.add_argument('--gui', '-g', type=str, default='gtk', choices=['gtk', 'web'], help="Choose which GUI you would like to launch. Default is GTK")
from xsagtk.xsa_app_main import start_xsa_gui
args = parser.parse_args()
if args.gui == "gtk":
from xsagtk.xsa_app_main import start_xsa_gui
elif args.gui == "web":
from xsaweb.main import start_web_gui
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment