auto-py-to-exe File not found error on run

456 Views Asked by At

i know i should share the code instead of image but please refer image for my path. This is my path of project

setup file contains

from Functions.MainWindow import Ui
def OpenMainwindow(self):
    try:
        app = QtWidgets.QApplication(sys.argv)
        window = Ui()
        window.show()
        app.exec_()
        # Ui()
    except Exception as es:
        print(es)

And the Inside form file i loaded UI file from other folder

uic.loadUi(r"./BAJARANGBALI/Forms/MainWindow.ui", self)

but when i make exe using auto-py-to-exe during running of exe file it shows file not found.[Errno 2] No such file or directory: './Forms/MainWindow.ui'.

I tried every path ,Even tried by moving exe to that path but no result.

I am new to stackoverflow i hope i tried my best to describe my issue.Thanks

0

There are 0 best solutions below