Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File at root directory to capture base path #5

Open
whiz-Tuhin opened this issue Aug 15, 2023 · 0 comments
Open

File at root directory to capture base path #5

whiz-Tuhin opened this issue Aug 15, 2023 · 0 comments
Assignees
Labels

Comments

@whiz-Tuhin
Copy link
Contributor

In the current version we seem to be using xfaas | serwo directory as the root for handling all paths to reach relevant scripts.
Rather than capturing current file path using pathlib.Path(__file__).parent we can have a __init__.py at the root level of the project and then use all paths relative to the same file.

OR

We can have an explicit file containing the root path and access this file by wrapping it up in a module and get the path using just a single getter,

@whiz-Tuhin whiz-Tuhin self-assigned this Aug 15, 2023
@whiz-Tuhin whiz-Tuhin changed the title Base file at root directory to capture root path File at root directory to capture base path Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant