bug fixes: environment variable usage

This commit is contained in:
Steve Nyemba 2024-06-25 11:48:57 -05:00
parent 808378afdb
commit 6f6fd48982
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ def init (email,path=REGISTRY_PATH,override=False):
Initializing the registry and will raise an exception in the advent of an issue Initializing the registry and will raise an exception in the advent of an issue
""" """
p = '@' in email p = '@' in email
q = False if '.' not in email else email.split('.')[-1] in ['edu','com','io','ai'] q = False if '.' not in email else email.split('.')[-1] in ['edu','com','io','ai','org']
if p and q : if p and q :
_config = {"email":email,'version':__version__} _config = {"email":email,'version':__version__}
if not os.path.exists(path): if not os.path.exists(path):