How do you handle sibling imports?

JavaScript: "I use .. to notate the parent directory and then move to the sibling I want. Just like how they did it in the 70s."

Python: "I make and install a new 'package' on a virtual environment before I can import it. I could use sys.path, but that's more of a bodge really."

Jul 22, 2023, 6:06 PM
2 0 0

comments