mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Use black with -l 120 param.
This commit is contained in:
1 parent
f928738bd5
commit
c021e21309
194 files changed
+6034
-4564
No files matched your search
+16
-11
@@ -30,6 +30,7 @@ from .version import __version_info__
|
||||
from .utils.file_watcher import FileWatcher
|
||||
|
||||
import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -84,11 +85,13 @@ class Config:
|
||||
server_filename = "gns3_server.ini"
|
||||
|
||||
if self._files is None and not hasattr(sys, "_called_from_test"):
|
||||
self._files = [os.path.join(os.getcwd(), server_filename),
|
||||
os.path.join(versioned_user_dir, server_filename),
|
||||
os.path.join(appdata, appname + ".ini"),
|
||||
os.path.join(common_appdata, appname, server_filename),
|
||||
os.path.join(common_appdata, appname + ".ini")]
|
||||
self._files = [
|
||||
os.path.join(os.getcwd(), server_filename),
|
||||
os.path.join(versioned_user_dir, server_filename),
|
||||
os.path.join(appdata, appname + ".ini"),
|
||||
os.path.join(common_appdata, appname, server_filename),
|
||||
os.path.join(common_appdata, appname + ".ini"),
|
||||
]
|
||||
else:
|
||||
|
||||
# On UNIX-like platforms, the configuration file location can be one of the following:
|
||||
@@ -109,12 +112,14 @@ class Config:
|
||||
versioned_user_dir = os.path.join(home, ".config", appname, version)
|
||||
|
||||
if self._files is None and not hasattr(sys, "_called_from_test"):
|
||||
self._files = [os.path.join(os.getcwd(), server_filename),
|
||||
os.path.join(versioned_user_dir, server_filename),
|
||||
os.path.join(home, ".config", appname + ".conf"),
|
||||
os.path.join("/etc/gns3", server_filename),
|
||||
os.path.join("/etc/xdg", appname, server_filename),
|
||||
os.path.join("/etc/xdg", appname + ".conf")]
|
||||
self._files = [
|
||||
os.path.join(os.getcwd(), server_filename),
|
||||
os.path.join(versioned_user_dir, server_filename),
|
||||
os.path.join(home, ".config", appname + ".conf"),
|
||||
os.path.join("/etc/gns3", server_filename),
|
||||
os.path.join("/etc/xdg", appname, server_filename),
|
||||
os.path.join("/etc/xdg", appname + ".conf"),
|
||||
]
|
||||
|
||||
if self._files is None:
|
||||
self._files = []
|
||||
|
||||
Reference in new issue
Block a user