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

Remove need for pycache #3

Open
aandrewchung opened this issue May 16, 2024 · 0 comments
Open

Remove need for pycache #3

aandrewchung opened this issue May 16, 2024 · 0 comments

Comments

@aandrewchung
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

I'm always frustrated when I have to repeatedly add the following lines of code to ensure that the src directory is in the Python path:

# Ensure the src directory is in the Python path
current_dir = os.path.dirname(__file__)
src_path = os.path.abspath(os.path.join(current_dir, '..', '..'))
if src_path not in sys.path:
    sys.path.append(src_path)

Additionally, the presence of __pycache__ directories can clutter the project and make it harder to manage.

Describe the solution you'd like

I would like to remove the need to manually adjust the Python path and manage __pycache__ directories. Ideally, this could be handled in a way that automatically ensures the src directory is always in the Python path when running the project. One potential solution could be setting up the project in a way that leverages environment variables or a project-level configuration file that sets the Python path appropriately.

Describe alternatives you've considered

TBD

Additional context

n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant