The PyInstaller .spec
file is mean to be portable across the three platforms that it supports: Windows, Mac OS X and Linux.
I find it much easier to generate the .spec
file once and modify it at will before building an executable from it.
In every example on the Internet (e.g. this one), the .spec
file would always define an absolute path in for the pathex
parameter in the ANALYSIS section. This makes the build non-portable, because the absolute path is not only specific to the machine the build runs on, but also the platform.
Does this always have to be an absolute path or is there a way to make it completely portable?