I\'m trying to add an image to the one file produced by Pyinstaller. I\'ve read many questions/forums like this one and that one and still it\'s not working.
I know
a simpler way of accessing the temp folder if by doing this:
bundle_dir = getattr(sys, '_MEIPASS', path.abspath(path.dirname(__file__))) data_path = os.path.abspath(path.join(bundle_dir, 'data_file.dat'))
Got it from read the docs