Config path fix

This commit is contained in:
Lord Of Nougate 2022-06-01 19:51:46 +02:00
parent 7af24ce701
commit fa4fb67155

View File

@ -5,11 +5,9 @@
import os import os
import configparser import configparser
import requests import requests
from bs4 import BeautifulSoup
config = configparser.ConfigParser() config = configparser.ConfigParser()
config.read('config.ini') config.read(os.path.dirname(__file__) + '/config.ini')
server_token = config['server']['token'] server_token = config['server']['token']
server_url = config['server']['url'] server_url = config['server']['url']