mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-05 09:02:53 +02:00
This commit deals with the deployment issue on Windows where there is no global Ruby/Python installation and the installer needs to package all required files. The solution is to read the Ruby/Python path from a file that is evaluated upon startup. The installer will install these files together with the executable for Windows. This feature is only enabled on Windows. A specific issue occured: since the location of the file needs to be determined, the path of the executable needs to be known. The Ruby initialization requires the path to be set very early, before QCoreApplication is instantiated. But Qt complains in QCoreApplication::applicationDirPath so that this approach cannot be used for this purpose.