feat/58 - simplify complex logic
This commit is contained in:
@@ -203,7 +203,7 @@ class AMQConfiguration:
|
||||
config.read(config_file_name)
|
||||
else:
|
||||
# Get the directory of the caller (the module where this function is called)
|
||||
caller_frame = inspect.stack()[1] # 0 is current frame, 1 is caller
|
||||
caller_frame = inspect.stack()[1] # 0 is current_availability frame, 1 is caller
|
||||
caller_module = inspect.getmodule(caller_frame[0])
|
||||
if caller_module:
|
||||
caller_dir = os.path.dirname(os.path.abspath(caller_module.__file__))
|
||||
|
||||
Reference in New Issue
Block a user