Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Python __init__.py

Name: Anonymous 2014-03-30 21:33

It seems like the multi-directory importing in python is shit. Can't I go back 2 directories and import something 2 directories in another path without modifying the sys.path ?

If I wanted to share libraries across 3 directories I'll need to copy them to each directory. If I updated one of the libraries in one directory I'd have to copy the updates to all others.

This can't be the way this works.

Name: Anonymous 2014-03-30 21:48

inb4 a pedo make an inane comment just to sage this thread

Name: Anonymous 2014-03-30 21:50

FIOC
sage

Name: Anonymous 2014-03-30 22:49

there's syntax for relative imports, but really just import things with their full path, problem solved.

Name: Anonymous 2014-03-31 16:23

>>3
>le pedophile sage

>>4
>le pedophile sage

Don't change these.
Name: Email:
Entire Thread Thread List