Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#10 PYTHONPATH ignored for compiler invocation

closed-fixed
nobody
None
5
2008-01-07
2008-01-06
Kevin Quick
No

Attempting to test a local SVN checkout of pyke, but ran into difficulties trying to compile the krb files.

In pyke/__init__.py, compilation is performed via:

os.system("%s -m pyke.compiler ...."%(sys.executable, ....)

However, this does not seem to get the PYTHONPATH environment variable setting used to point to the local SVN checkout location, despite PYTHONPATH being exported.

It might be better to use the exec statement instead:

exec pyke.compiler.__module__ in ....

(or something like that) which should utilize the current interpreter (with additional advantages of improved performance and portability).

Discussion

  • Kevin Quick
    Kevin Quick
    2008-01-06

    Logged In: YES
    user_id=6133
    Originator: YES

    Update: PYTHONPATH is being honored (as it should).

    Problem appears to be in load() updates in rev56; re-opened separate bug.

    However, the exec recommendation still seems relevant.

     
  • Logged In: YES
    user_id=301752
    Originator: NO

    I've moved the suggestion into the Feature Request Tracker as ticket #1865574. I'd like to eventually create a top-level pyke class that would allow multiple instances of pyke within the same program.

     
    • status: open --> closed-fixed