question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add current workdir to pythonpath automatically

See original GitHub issue

Description 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:closed
  • Created 4 years ago
  • Comments:19 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
wochingecommented, Jul 15, 2020

@shubh802 Could you please ask the question in the forum? Both, Rasa team members and the Rasa community, will help you there 🙂 Thanks 🙏

1reaction
erohmensingcommented, Jul 9, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found