python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

Ignoring files prefix and use only files implemented #557

Open Malachov opened 2 years ago

Malachov commented 2 years ago

Resolves #393 (was already closed, but issue still remaining because of another reason)

Both proposed ways implemented. Its possible to define prefix that will be always ignored (possible to setup for npm modules). Also it's possible to define what particular files will be parsed.

New params in inits are called exclude_prefix and use_only_files feel free to change names as you wish.

init.py in tests added so the tests can run in local IDE and imports works from root.

In added tests, also original tests changed a bit as sort() function returns none and comparison would fail even if not all functions would be parsed.