1

I know how to help pyinstaller to catch data files with .spec file but It is only when the names of them are fixed before executing pyinstaller. Anyone knows how to make the py file to exe that dinamically creates and names data files(.txt) and reads them on running? If It is impossible with pyinstaller, is there any other recommended tools?

I tried on windows10 and windows7 with python version 3.6 and 3.7.

jaewon
  • 11
  • 4
  • The `.spec` file is actually a 'regular' python code file that pyinstaller will execute. You can insert your own python code into the `.spec` file. So you can add some code that creates a list of the data file names and then pass it to the `datas` argument of `Analysis`. – Xukrao Jan 26 '19 at 12:05
  • 1
    I do not get the problem. It does not matter if a Python script creates and reads files or if an executable does so. I think you should share at least some pseudo code. – Sven-Eric Krüger Jan 26 '19 at 16:57

0 Answers0