Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include ADDON_DIR when opening config file #2

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Conversation

jdietrch
Copy link
Contributor

@jdietrch jdietrch commented Dec 2, 2024

No description provided.

Otherwise, the config file is not found when trying to open it:

Traceback (most recent call last):
  File "/usr/local/nftables_addon_dns/nftables_addon_dns-latest/lib/dns.py", line 17, in <module>
    CONFIG = load_config(file=CONFIG_FILE, key=CONFIG_FILE_KEY)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/nftables_addon_dns/nftables_addon_dns-latest/lib/util.py", line 54, in load_config
    with open(file, 'r', encoding='utf-8') as _cnf:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'dns.json'
@superstes superstes merged commit 385d501 into O-X-L:latest Dec 19, 2024
1 check passed
@jdietrch jdietrch deleted the fnfe branch December 23, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants