mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-18 23:38:17 +00:00
Serve WebUI handlers and update-bundled-web-ui script, Ref: #1362
This commit is contained in:
@ -24,6 +24,15 @@ def get_static_path(filename):
|
||||
:param filename: relative filename
|
||||
:return: absolute path
|
||||
"""
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
static_directory = os.path.abspath(os.path.join(current_dir, '..', 'static'))
|
||||
|
||||
static_directory = get_static_dir()
|
||||
return os.path.join(static_directory, filename)
|
||||
|
||||
|
||||
def get_static_dir():
|
||||
"""
|
||||
Returns location of static directory
|
||||
:return: absolute path
|
||||
"""
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
return os.path.abspath(os.path.join(current_dir, '..', 'static'))
|
Reference in New Issue
Block a user