Allow 'backup' or 'log' as directories
This commit is contained in:
parent
99dd5d5f63
commit
db339eecd3
1 changed files with 7 additions and 1 deletions
|
@ -859,7 +859,13 @@ class UiWebsocket(object):
|
||||||
|
|
||||||
def actionServerShowdirectory(self, to, directory="backup"):
|
def actionServerShowdirectory(self, to, directory="backup"):
|
||||||
import webbrowser
|
import webbrowser
|
||||||
webbrowser.open('file://' + os.path.abspath(config.data_dir))
|
|
||||||
|
if directory == "backup":
|
||||||
|
directory = os.path.abspath(config.data_dir)
|
||||||
|
elif directory == "log":
|
||||||
|
directory = os.path.abspath(config.log_dir)
|
||||||
|
|
||||||
|
webbrowser.open('file://' + directory)
|
||||||
|
|
||||||
def actionConfigSet(self, to, key, value):
|
def actionConfigSet(self, to, key, value):
|
||||||
if key not in ["tor", "language"]:
|
if key not in ["tor", "language"]:
|
||||||
|
|
Loading…
Reference in a new issue