Re: CWD + relative path + import name == resultant relative path?

2021-10-30 Thread Dieter Maurer
Dan Stromberg wrote at 2021-10-29 16:38 -0700: >Is there a predefined function somewhere that can accept the 3 things on >the LHS in the subject line, and give back a resultant relative path - >relative to the unchanged CWD? > >To illustrate, imagine: >1) You're sitting in /home/foo/coolprog >2) Yo

CWD + relative path + import name == resultant relative path?

2021-10-29 Thread Dan Stromberg
Is there a predefined function somewhere that can accept the 3 things on the LHS in the subject line, and give back a resultant relative path - relative to the unchanged CWD? To illustrate, imagine: 1) You're sitting in /home/foo/coolprog 2) You look up the AST for /home/foo/coolprog/a/b/c.py 3) /