Re: file accessibility across directories?

Mats Wichmann <[email protected]> Thu, 29 Feb 2024 10:14:33 -0700
Newsgroups gmane.comp.python.tutor
Message-ID <[email protected]>
On 2/29/24 09:54, Mats Wichmann wrote:

correction:

> because now the name of the running module is "utils.baz", so it looks 
> like a package rooted at a level above "utils", and that directory will 
> be in sys.path, so "from src/foo import Foo" should work.

sigh, type rather than paste and you'll get it wrong... should have been

from src.foo import Foo



_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor