-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
629 additions
and
757 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
#ConfigManager | ||
#Copyright (C) 2019-2022 yamahubuki <[email protected]> | ||
#Copyright (C) 2019-2020 yamahubuki <[email protected]> | ||
|
||
import os | ||
import configparser | ||
|
@@ -15,7 +15,6 @@ def __init__(self): | |
self.identifier="ConfigManager" | ||
self.log=getLogger(self.identifier) | ||
self.log.debug("Create config instance") | ||
self.fileName = None | ||
|
||
def read(self,fileName): | ||
self.fileName=fileName | ||
|
@@ -54,12 +53,6 @@ def write(self): | |
self.log.error("save failed.") | ||
return errorCodes.ACCESS_DENIED | ||
|
||
def getFileName(self): | ||
return self.fileName | ||
|
||
def getAbsFileName(self): | ||
return os.path.abspath(self.fileName) | ||
|
||
def __getitem__(self,key): | ||
try: | ||
return ConfigSection(super().__getitem__(key)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.