Changeset f0b2b1a in ammosreader


Ignore:
Timestamp:
05/18/23 18:33:06 (2 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
dff8988
Parents:
dc38d9b
Message:

fix conf file path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/__init__.py

    rdc38d9b rf0b2b1a  
    1818    except PermissionError:
    1919#       print("Logging to file disabled")
    20         logging.config.fileConfig('ammos_logging.conf')
     20        conf_file = Path(__file__).parent / 'ammos_logging.conf'
     21        print("Conf file", conf_file)
     22        logging.config.fileConfig(conf_file)
    2123else:
    2224#   print("Logging to", str(log_path))
Note: See TracChangeset for help on using the changeset viewer.