imagenRetro = PhotoImage(file="./Imagen/Retroceder.png") #llama y carga la imagenpython Aplicacion_Calculadora.py
cd ..
python folder/Aplicacion_Calculadora.py
cd somewhere/random/on/your/machine
python /full/path/to/Aplicacion_Calculadora.py
__file__ variable. Something allong the lines of:from os import path
script_folder = path.abspath(path.dirname(__file__))
imagenRetro=PhotoImage(file=path.join(script_folder, "Imagen/Retroceder.png"))#llama y carga la imagen
__file__ is strange inside PyInstaller so PyInstaller has its own mechanism for getting the folder your code is in. It's documented here. Your code would look like:from os import path
import sys
bundle_dir = getattr(sys, '_MEIPASS', path.abspath(path.dirname(__file__)))
imagenRetro=PhotoImage(file=path.join(bundle_dir, "Imagen/Retroceder.png"))#llama y carga la imagen
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/1519a9c8-cc73-425c-875c-b02fa5b07619%40googlegroups.com.