Cx_freeze Issue With Relative Path On Mac July 25, 2024 Post a Comment I'm having issues with cx_freeze relative path logic on mac. I'm using python 3.3 and pyqt5 and building an app portable windows - mac. The following simple script just loads an iSolution 1: a workaround is the following: instead ofpixmap = QtGui.QPixmap('testimage.jpeg') Copyplace:pixmap = QtGui.QPixmap(os.path.join(os.getcwd(),'image_insert_test-0.1.app/Contents/MacOS','testimage.jpeg') Copythis fishes the image path from the .app package but there has to be a more elegant way to do it. Share Post a Comment for "Cx_freeze Issue With Relative Path On Mac"
Post a Comment for "Cx_freeze Issue With Relative Path On Mac"