Skip to content

Commit

Permalink
kwargs** rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Shending-Help committed Oct 19, 2022
1 parent 4210001 commit a3ee7f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion robyn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, file_object: str) -> None:
self.headers = []
self.directories = []
self.event_handlers = {}
load_vars(root=directory_path)
load_vars(project_root=directory_path)
self._config_logger()

def _add_route(self, route_type, endpoint, handler, const=False):
Expand Down
4 changes: 2 additions & 2 deletions robyn/env_populator.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ def parser(config_path=None, project_root = None):


# check for the environment variables set in cli and if not set them
def load_vars(variables = None, root = None):
def load_vars(variables = None, project_root = None):
"""Main function"""

if variables is None:
variables = parser(project_root=root)
variables = parser(project_root=project_root)

for var in variables:
if var[0] in os.environ:
Expand Down

0 comments on commit a3ee7f2

Please sign in to comment.