__pycache__/
# IDE/editors/tools cache files
-.vscode/
-
-# cache file, generated by sat, to store configuration
-data/local.pyconf
+.vscode/
\ No newline at end of file
import datetime
import shutil
import gettext
-from pathlib import Path
import pprint as PP
import src
# Load LOCAL config file
# search only in the data directory
src.pyconf.streamOpener = ConfigOpener([cfg.VARS.datadir])
-
- # if `local.pyconf` file is missing, create it from
- # `local_original.pyconf` template file
- localconf_path = osJoin(cfg.VARS.datadir, 'local.pyconf')
- if not Path(localconf_path).is_file():
- shutil.copyfile(osJoin(cfg.VARS.datadir, 'local_original.pyconf'), localconf_path)
-
try:
- local_cfg = src.pyconf.Config(open(localconf_path),
+ local_cfg = src.pyconf.Config(open( osJoin(cfg.VARS.datadir,
+ 'local.pyconf')),
PWD = ('LOCAL', cfg.VARS.datadir) )
except src.pyconf.ConfigError as e:
raise src.SatException(_("Error in configuration file: "