mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Now it's possible ignore session at strtup
This commit is contained in:
parent
29d434bcd4
commit
7d6bf53019
@ -1,6 +1,7 @@
|
|||||||
[sessions]
|
[sessions]
|
||||||
current_session = string(default="")
|
current_session = string(default="")
|
||||||
sessions = list(default=list())
|
sessions = list(default=list())
|
||||||
|
ignored_sessions = list(default=list())
|
||||||
|
|
||||||
[app-settings]
|
[app-settings]
|
||||||
language = string(default="system")
|
language = string(default="system")
|
||||||
|
@ -7,6 +7,7 @@ import os
|
|||||||
import session
|
import session
|
||||||
import manager
|
import manager
|
||||||
from config_utils import Configuration
|
from config_utils import Configuration
|
||||||
|
import config
|
||||||
|
|
||||||
class sessionManagerController(object):
|
class sessionManagerController(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -17,7 +18,7 @@ class sessionManagerController(object):
|
|||||||
sessionsList = []
|
sessionsList = []
|
||||||
self.sessions = []
|
self.sessions = []
|
||||||
for i in os.listdir(paths.config_path()):
|
for i in os.listdir(paths.config_path()):
|
||||||
if os.path.isdir(paths.config_path(i)):
|
if os.path.isdir(paths.config_path(i)) and i not in config.app["sessions"]["ignored_sessions"]:
|
||||||
strconfig = "%s/session.conf" % (paths.config_path(i))
|
strconfig = "%s/session.conf" % (paths.config_path(i))
|
||||||
config_test = Configuration(strconfig)
|
config_test = Configuration(strconfig)
|
||||||
name = config_test["twitter"]["user_name"]
|
name = config_test["twitter"]["user_name"]
|
||||||
|
Loading…
Reference in New Issue
Block a user