Commit 1498612a authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

Use realpath of callback

parent 4685bf38
......@@ -177,10 +177,11 @@ class AgkyraCLI(cmd.Cmd):
helper = protocol.SessionHelper()
def __init__(self, *args, **kwargs):
self.callback = kwargs.pop('callback', sys.argv[0])
self.callback = kwargs.pop('callback', os.path.realpath(sys.argv[0]))
self.args = kwargs.pop('parsed_args', None)
AGKYRA_LOGGER.setLevel(logging.DEBUG
if self.args.debug else logging.INFO)
LOGGER.debug("Callback is %s" % self.callback)
cmd.Cmd.__init__(self, *args, **kwargs)
@staticmethod
......
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