In ruby the library path is provided in $:
, in perl it's in @INC
- how do you get the list of paths that Python searches for modules when you do an import?
Asked
Active
Viewed 2.1e+01k times
75
![](../../users/profiles/169947.webp)
Ken Williams
- 19,823
- 7
- 71
- 126
![](../../users/profiles/19784.webp)
Kyle Burton
- 25,063
- 9
- 46
- 60
-
2In Ruby I think you meant `$:`. `$"` is a list of modules loaded by `require`. – docwhat Oct 09 '11 at 16:57
-
You might want to take a look at my answer and others to this related question here: https://stackoverflow.com/a/38485710/436794 – Pierz Jan 10 '18 at 16:43