Benjamin-Loison / cpython

The Python programming language
https://www.python.org/
Other
0 stars 0 forks source link

Avoid `sys.path.insert(0, '../')` to `import` files in a sibling folder #17

Open Benjamin-Loison opened 6 months ago

Benjamin-Loison commented 6 months ago

Otherwise it potentially requires kernel restart and in some showcase situations it is not appropriate.

Should deepen how this workaround actually works.

Source: the Stack Overflow answer 28712742.

Tracked at Robust_image_source_identification_on_modern_smartphones/issues/22.

Proposal:

# Add a code block here, if required

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response