Add current workdir to pythonpath automatically
See original GitHub issueDescription of Problem:
Using the new rasa
commands doesn’t automatically load the current workdir as a potential module directory anymore, which means peoples custom components don’t work (https://github.com/RasaHQ/rasa/issues/3748). They have to manually add them to their PYTHONPATH, which with the old python -m
way wasn’t necessary
Overview of the Solution: We should consider adding the current workdir as a potential module directory automatically on startup
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (15 by maintainers)
Top Results From Across the Web
python - How can I add the current directory to `PYTHONPATH ...
I was adding the path every project using os.chdir() but this didn't work for modules so I have been manually appending the path...
Read more >Python: is the current directory automatically included in path?
Python adds the directory where the initial script resides as first item to sys.path : As initialized upon program startup, the first item ......
Read more >Check and add the module search path with sys.path in Python
Modules - The Module Search Path — Python 3.10.0 documentation This article describes how to check the current module search paths and add...
Read more >Using PYTHONPATH — Functional MRI methods
The PYTHONPATH variable has a value that is a string with a list of directories that Python should add to the sys.path directory...
Read more >Change current working directory with Python - GeeksforGeeks
To change the current working directory(CWD) os.chdir() method is used. This method changes the CWD to a specified path.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@shubh802 Could you please ask the question in the forum? Both, Rasa team members and the Rasa community, will help you there 🙂 Thanks 🙏
I just mean when i’m testing commands and stuff. I’ll add it to mine while I work on a PR today that involves testing commands and see if anything funky happens