Changelog: https://roxy-wi.org/changelog#6_2_0
pull/343/head
Pavel Loginov 2022-09-26 16:53:08 +03:00
parent 13be24f00f
commit e4d7640b2c
2 changed files with 6 additions and 5 deletions

View File

@ -122,7 +122,7 @@ def logging(server_ip: str, action: str, **kwargs) -> None:
login = ''
cur_date = get_data('logs')
cur_date_in_log = get_data('date_in_log')
log_path = ('main', 'log_path')
log_path = get_config_var.get_config_var('main', 'log_path')
if not os.path.exists(log_path):
os.makedirs(log_path)

View File

@ -1,5 +1,6 @@
from configparser import ConfigParser, ExtendedInterpolation
class GetConfigVar:
def __init__(self):
self.path_config = "/etc/roxy-wi/roxy-wi.cfg"