Change default projects directory from ~/Documents/GNS3/projects to ~/GNS3/projects.

This commit is contained in:
grossmj 2014-06-29 10:14:15 -06:00
parent c9a729b369
commit 4b5c38495a
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class FileUploadHandler(tornado.web.RequestHandler):
config = Config.instance()
server_config = config.get_default_section()
self._upload_dir = os.path.expandvars(
os.path.expanduser(server_config.get("upload_directory", "~/Documents/GNS3/images")))
os.path.expanduser(server_config.get("upload_directory", "~/GNS3/images")))
self._host = request.host
try:
os.makedirs(self._upload_dir)

View File

@ -79,8 +79,8 @@ class Server(object):
# get the projects and temp directories from the configuration file (passed to the modules)
config = Config.instance()
server_config = config.get_default_section()
# default projects directory is "~/Documents/GNS3/projects"
self._projects_dir = os.path.expandvars(os.path.expanduser(server_config.get("projects_directory", "~/Documents/GNS3/projects")))
# default projects directory is "~/GNS3/projects"
self._projects_dir = os.path.expandvars(os.path.expanduser(server_config.get("projects_directory", "~/GNS3/projects")))
self._temp_dir = server_config.get("temporary_directory", tempfile.gettempdir())
try: