Using a more classical path for the configuration
This commit is contained in:
parent
129a8cab46
commit
e23d994dc1
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3.6
|
||||
import requests
|
||||
import json
|
||||
import yaml
|
||||
|
@ -8,8 +8,9 @@ import tempfile
|
|||
import os
|
||||
import hashlib
|
||||
from subprocess import call
|
||||
from pathlib import Path
|
||||
|
||||
config = os.path.join(os.path.dirname(os.path.realpath(__file__)),"config.yml")
|
||||
config = Path.home()/".config/ripe-api.yml"
|
||||
|
||||
# Read configuration
|
||||
with open(config, 'r') as ymlfile:
|
||||
|
|
Loading…
Reference in a new issue