diff options
Diffstat (limited to 'fg21sim')
| -rw-r--r-- | fg21sim/webui/websocket.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/fg21sim/webui/websocket.py b/fg21sim/webui/websocket.py index dffd864..0e7f07f 100644 --- a/fg21sim/webui/websocket.py +++ b/fg21sim/webui/websocket.py @@ -352,7 +352,7 @@ class FG21simWSHandler(tornado.websocket.WebSocketHandler):                  # Ignore "workdir" and "configfile"                  continue              elif key == "userconfig": -                if os.path.isabs(value): +                if os.path.isabs(os.path.expanduser(value)):                      self.configs.userconfig = value                  else:                      errors[key] = "Not an absolute path" @@ -390,7 +390,7 @@ class FG21simWSHandler(tornado.websocket.WebSocketHandler):          """          success = False          error = None -        if os.path.isabs(userconfig): +        if os.path.isabs(os.path.expanduser(userconfig)):              try:                  self.configs.read_userconfig(userconfig)                  success = True | 
