FIX: Corrigido Path do .env
This commit is contained in:
parent
d10f664ec1
commit
b0d653e809
@ -379,7 +379,8 @@ def get_destinations_by_domain():
|
||||
pass
|
||||
|
||||
def main():
|
||||
load_env()
|
||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
load_env(os.path.join(script_dir, ".env"))
|
||||
# Obter registros do FreeSWITCH
|
||||
output = get_registrations()
|
||||
registered_users = parse_registrations(output) if output else []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user