[IronPython] Ref to "." to be omitted from sys.path. Objections?

Jeff Hardy jdhardy at gmail.com
Sun Jan 23 22:14:21 CET 2011


On Sun, Jan 23, 2011 at 12:36 PM, Daniel D. <dvdotsenko at gmail.com> wrote:
>> I committed the patch using '.' as  the current directory; if anyone
>> (Dino?) needs the fully resolved path ...
>
> The "." (rather "") in cPy is a neat trick. It's added only in
> "interactive" (console, "-c") cases and allows you to change the CWD
> to the dir you want and have your custom modules picked up as local
> wherever dir you change to from within the console. Do that all the
> time when deving. Setting fully-resolved path to CWD feels limiting in
> that context.

You mean switching using os.chdir, I presume? That works under ipy
using '.' (which makes sense). Is there something special about how
CPython uses '' instead of '.' that ipy should by emulating?

- Jeff



More information about the Ironpython-users mailing list