I released the first version of Piger on Github after moving from sourceforge.net
This new release is pretty much the same as the previous one just brought to the 21st century …
The changes are
- Python 3.5.1
- Python is not required on the host machine, (something that was causing a break before!)
- Lua 5.2
- x64 or x86 build, (not for memory reasons, but for env. variable reasons).
- Moved from Sourceforge.net, (I added a readme.md to redirect to github). Please Google for some well documented reasons to move away from them…
Please try it and tell me if you see something cool that should be added.
I am also looking for cool scripts to be added to my list, so please, send them my way!
For my Piger application, I wanted my C++ app to parse Python scripts but I quickly became aware of the fact that the user must have Python installed on their machine, not only that they needed the same version as mine, (version 3.5).
The normal call would be something like…
// This will cause an error if the user does not have the same version of Python as the one we want.
// or if they do not have Python installed at all.
But that throws an error when the user does not have Python installed.
And if they have an older version installed, it _might_ work, but the scripts might not work as expected.
The solution is to embed the Python you want to run in your app.
- Go to the Python website and download the Embeddable zip file for your app, (x64 or x86)
- Extract the python35.zip located inside that zip file
- Copy it somewhere where it can be referenced.
- Add the code below.
std::wstring exe_dir = L"\\exe\\path";
python_path += exe_dir + L"python35.zip";
// Now we can call Initialize
Now your app will work using version Python 3.5.1