mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
Cleanup old temporary project at startup
This commit is contained in:
1 parent
ca354ae7f2
commit
2ace014a3c
3 files changed
+70
-3
No files matched your search
@@ -26,6 +26,8 @@ from gns3server.server import Server
|
||||
from gns3server.web.logger import init_logger
|
||||
from gns3server.version import __version__
|
||||
from gns3server.config import Config
|
||||
from gns3server.modules.project import Project
|
||||
|
||||
|
||||
import logging
|
||||
log = logging.getLogger(__name__)
|
||||
@@ -140,6 +142,8 @@ def main():
|
||||
log.critical("The current working directory doesn't exist")
|
||||
return
|
||||
|
||||
Project.clean_project_directory()
|
||||
|
||||
host = server_config["host"]
|
||||
port = int(server_config["port"])
|
||||
server = Server(host, port)
|
||||
|
||||
Reference in new issue
Block a user