Commit 6605e0a7 authored by Daniele Venzano's avatar Daniele Venzano

Fix auth file path in idle script

parent fa537b2a
...@@ -12,6 +12,7 @@ import time ...@@ -12,6 +12,7 @@ import time
import random import random
import collections import collections
import glob import glob
import os
from zoe_cmd.utils import read_auth from zoe_cmd.utils import read_auth
from zoe_cmd.api_lib import ZoeAPI from zoe_cmd.api_lib import ZoeAPI
...@@ -150,7 +151,8 @@ Args = collections.namedtuple('Args', ['auth_file']) ...@@ -150,7 +151,8 @@ Args = collections.namedtuple('Args', ['auth_file'])
def main(): def main():
"""Main.""" """Main."""
args = Args('/home/venzano/.zoerc') fauth = os.path.join(os.getenv('HOME'), '.zoerc')
args = Args(fauth)
auth = read_auth(args) auth = read_auth(args)
api = ZoeAPI(auth['url'], auth['user'], auth['pass']) api = ZoeAPI(auth['url'], auth['user'], auth['pass'])
zapps = [] zapps = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment