After a long and painful beating, I finally discovered the source of my misery. For some reason, evalFile does crash while creating a pyc file in debug mode and I've been overboard finding the glitch. I believe the reason it as been undetected is because the sample files does not explicitly create pyc files.
Florian would put me in a madhouse straight up! :)
Yes Tom, thanks for the tip. That is exactly what I did a week ago but I went completely crazy trying to fix this as in my mind, it wasn't possible that this could be happening without me doing something wrong. I'm rather confident now that this issue is beyond my reach.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Greetings,
After a long and painful beating, I finally discovered the source of my misery. For some reason, evalFile does crash while creating a pyc file in debug mode and I've been overboard finding the glitch. I believe the reason it as been undetected is because the sample files does not explicitly create pyc files.
evalFile(":example.py") /// works!
evalFile("example.py") /// crash!
I'm guessing the ':' is telling not to create a pyc file but I don't know for sure.
Usually, scripts are not based at the root folder of the API so I tried ':C:/scripts/example.py'... Windows doesn't like that.
Can anyone confirm the madness or I'm taking crazy pills?
Crazypills
I have the same problem and I ended up calling evalscript :
ifdef Q_OS_WIN32
else
endif
Florian would put me in a madhouse straight up! :)
Yes Tom, thanks for the tip. That is exactly what I did a week ago but I went completely crazy trying to fix this as in my mind, it wasn't possible that this could be happening without me doing something wrong. I'm rather confident now that this issue is beyond my reach.
Hi, I have spent three days investigating this issue until I have checked that evailScript works but evailFile doesn't. At least, I'm not alone :)
Thanks