Browse Source

Added filepath for config.ini read

master
Rune Olsen 1 year ago
parent
commit
0c2445cdef
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      py-dyndns.py

+ 3
- 2
py-dyndns.py View File

@@ -5,11 +5,12 @@ import json
import logging
import argparse
import requests
import os
# Config stuff

filepath = os.path.dirname(os.path.abspath(__file__))
config = configparser.ConfigParser()
config.read('config.ini')
config.read(filepath+'/config.ini')
api = config['DYNDNS']['api_key']
ip4 = config['DYNDNS']['ip4']
ip6 = config['DYNDNS']['ip6']


Loading…
Cancel
Save