Skip to content

All modules in the same directory: #3

@JdeH

Description

@JdeH

Hi Michael,

I am curious about:

You'll want to arrange for the htmltree.py file to be in or symbolically linked in the same directory as any other python files to be transpiled as part of your project. That's a current limitation of Transcrypt. It's on the list of issues at the Transcrypt repo and the author, Jacques de Hooge, has it on his list of upcoming enhancements.

See my comment at:

TranscryptOrg/Transcrypt#337

In short, all of the following should work:

  1. Pip-install htmltree from PyPi and it will be found both by Transcrypt and CPython
  2. Put htmltree in Transcrypt's modules directory, it will be found only by Transcrypt
  3. Put it in the directory of your project (main file so to say), it will only be found by your project
  4. Add the htmltree directory (so the dir where htmltree.py resides) to your PYTHONPATH

To avoid the need for a symlink, 1 or 4 would be best. Since 1 isn't yet supported, 4 remains.

KR
Jacques de Hooge

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions