You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 pathcurrent_dir=os.path.dirname(__file__)
src_path=os.path.abspath(os.path.join(current_dir, '..', '..'))
ifsrc_pathnotinsys.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
The text was updated successfully, but these errors were encountered:
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: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 thesrc
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
The text was updated successfully, but these errors were encountered: