I'm pretty certain PyInstaller is completely unaware `.pye`s exist and are 
therefore not recognised by any of the import/`PYTHONPATH` based parts of 
PyInstaller. So `--hidden-import` won't do it but just adding it as a plain 
data file using `--add-data=source:target` should work. This gets used 
quite often for `.pyd`s.

Where in your app you should put it (the `target`) depends on how you 
import your `pye`. If you use plain `import pyeModule` then it should just 
go in the root of your app:

```shell
PyInstaller --add-data=/path/to/pyeModule.pye:. your_script.py
```

If pyeModule is part if a larger package and you use `from foo.bar import 
pyeModule` then you need to mirror the directory structure:

```shell
PyInstaller --add-data=/path/to/pyeModue.pye:./foo/bar/ your_script.py 
```

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/141892b3-4b92-45d1-bbca-a7050526bafdn%40googlegroups.com.

Reply via email to