News for hackers. Stuff that matters.
Re:How the Python import system works by codethief on Saturday July 24, 2021 @07:10PM (#27945148)
> The think that irks me is whether they work changes based on where you've invoked Python from. `./bin/my_script.py` behaves differently from `./my_script.py`.

This.

IMO that's also one of the main issues of Bash – you can't modularize a script unless you make sure your working directory is the directory containing the script. (And good luck with finding out the latter! [0])

[0]: https://stackoverflow.com/questions/4774054/reliable-way-for...

There are no comments on this comment yet.