1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-12 17:10:55 +00:00

Fix after jeremy feedback

This commit is contained in:
Julien Duponchelle 2015-07-21 20:19:29 +02:00
parent fc14deee1b
commit 6bf7a6aa38

View File

@ -84,7 +84,6 @@ class UploadHandler:
st = os.stat(destination_path)
os.chmod(destination_path, st.st_mode | stat.S_IXUSR)
except OSError as e:
print(e)
response.html("Could not upload file: {}".format(e))
response.set_status(200)
return
@ -156,4 +155,4 @@ class UploadHandler:
@staticmethod
def project_directory():
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"))