py to exe

Hello. I used command pyinstaller --add-data "TurboActivate.dll;" --add-data "TurboActivate.dat ;." example.py for create exe file, but after convertation exe file cant find .dat file, only .dll. Please help

, edited

Sounds like a PyInstaller problem. Check out their docs to see how to do it.

May be can I add .dat file just in py code?

Yeah, you could. And use TA_PDetsFromByteArray().

Sorry, where should I add this code? Maybe do you have a python examples?

, edited

Call it before calling any other function. See the C example for a low-level example.

Sorry I forgot to say that use --onefile method, not --onedir. I used dat_file_loc = os.path.join(sys._MEIPASS, 'TurboActivate.dat')) in my py code but is didnt work…

, edited

Please help. I don't undestant how to use TA_PDetsFromByteArray() in Python

, edited

I’d advise not use PyInstaller or hiring someone who can help you use it. We provide an example.

I just want to know how to add path to .dat file in my py code. I used TA_PDetsFromByteArray() and PDetsFromPath (path\to\TurboActivate.dat) but it didn't work. As the creator, can you tell me how to write the path in the code to this file? Please…

, edited

You will need to modify __init__.py to add the TA_PDetsFromByteArray() function. See the C/C++ example and header for the function definition, description, and error codes.

I need delete self._lib.TA_PDetsFromPath(wstr(dat_file_loc)) and replase TURBOACTIVATE_API HRESULT TA_CC TA_PDetsFromByteArray(const uint8_t * byteArr, size_t byteArrLen) for python language or somthing else?

, edited

We don’t have time to write and test the function.

if you’re determined to use PyInstaller, then fix whatever problems are with that.

Enable verbose building (see their docs)

Debug Exactly what is happening and where PyInstaller is messing things up.