mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02:00
Fix after jeremy feedback
This commit is contained in:
parent
fc14deee1b
commit
6bf7a6aa38
@ -84,7 +84,6 @@ class UploadHandler:
|
|||||||
st = os.stat(destination_path)
|
st = os.stat(destination_path)
|
||||||
os.chmod(destination_path, st.st_mode | stat.S_IXUSR)
|
os.chmod(destination_path, st.st_mode | stat.S_IXUSR)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
print(e)
|
|
||||||
response.html("Could not upload file: {}".format(e))
|
response.html("Could not upload file: {}".format(e))
|
||||||
response.set_status(200)
|
response.set_status(200)
|
||||||
return
|
return
|
||||||
@ -156,4 +155,4 @@ class UploadHandler:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def project_directory():
|
def project_directory():
|
||||||
server_config = Config.instance().get_section_config("Server")
|
server_config = Config.instance().get_section_config("Server")
|
||||||
return os.path.expanduser(server_config.get("projects_path", "~/GNS3/images"))
|
return os.path.expanduser(server_config.get("projects_path", "~/GNS3/projects"))
|
||||||
|
Loading…
Reference in New Issue
Block a user