Merge pull request #1117 from imachug/showdirectory
Allow 'backup' or 'log' as directories
This commit is contained in:
commit
94cd5d32e5
1 changed files with 7 additions and 1 deletions
|
@ -859,7 +859,13 @@ class UiWebsocket(object):
|
|||
|
||||
def actionServerShowdirectory(self, to, directory="backup"):
|
||||
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):
|
||||
if key not in ["tor", "language"]:
|
||||
|
|
Loading…
Reference in a new issue