abs path dns
This commit is contained in:
parent
b4e10b36f0
commit
f4ea98921b
1 changed files with 1 additions and 2 deletions
3
main.py
3
main.py
|
@ -8,13 +8,12 @@ from re2oapi import Re2oAPIClient
|
|||
|
||||
import sys
|
||||
import os
|
||||
import os
|
||||
|
||||
|
||||
path =(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
config = ConfigParser()
|
||||
config.read('config.ini')
|
||||
config.read(path+'/config.ini')
|
||||
|
||||
api_hostname = config.get('Re2o', 'hostname')
|
||||
api_password = config.get('Re2o', 'password')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue