os.path.dirname(__file__) points to the scrdir, not the builddir. Use os.getcwd() instead.
Attach a file by drag & drop or click to upload