Skip to content

File at root directory to capture base path #5

@whiz-Tuhin

Description

@whiz-Tuhin

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,

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions