Fixed main.py appPath bug