pygui: added option to launch core-pygui into a specific session using an id
This commit is contained in:
parent
165e404184
commit
e34002b851
5 changed files with 34 additions and 26 deletions
|
@ -13,6 +13,7 @@ if __name__ == "__main__":
|
|||
parser.add_argument("-l", "--level", choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"], default="INFO",
|
||||
help="logging level")
|
||||
parser.add_argument("-p", "--proxy", action="store_true", help="enable proxy")
|
||||
parser.add_argument("-s", "--session", type=int, help="session id to join")
|
||||
args = parser.parse_args()
|
||||
|
||||
# check home directory exists and create if necessary
|
||||
|
@ -28,5 +29,5 @@ if __name__ == "__main__":
|
|||
|
||||
# start app
|
||||
Images.load_all()
|
||||
app = Application(args.proxy)
|
||||
app = Application(args.proxy, args.session)
|
||||
app.mainloop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue