diff --git a/setup.py b/setup.py index 2f1634765..03ee521a6 100644 --- a/setup.py +++ b/setup.py @@ -81,7 +81,7 @@ import designer except ImportError: # el script pyfpdf/tools/designer.py no esta disponible: - print "IMPORTANTE: no se incluye el diseƱador de plantillas PDF" + print("IMPORTANTE: no se incluye el diseƱador de plantillas PDF") # parametros para setup: kwargs = {} @@ -99,10 +99,10 @@ )] # fix permission denied runtime error on win32com.client.gencache.GenGeneratePath # (expects a __init__.py not pyc, also dicts.dat pickled or _LoadDicts/_SaveDicts will fail too) - # NOTE: on windows 8.1 64 bits, this is stored in C:\Users\REINGART\AppData\\Local\Temp\gen_py\2.7 - from win32com.client import gencache - gen_py_path = gencache.GetGeneratePath() or "C:\Python27\lib\site-packages\win32com\gen_py" - data_files += [( + # NOTE: on windows 8.1 64 bits, this is stored in C:\Users\REINGART\AppData\\Local\Temp\gen_py\2.7 + from win32com.client import gencache + gen_py_path = gencache.GetGeneratePath() or "C:\Python27\lib\site-packages\win32com\gen_py" + data_files += [( r"win32com\gen_py", [os.path.join(gen_py_path, "__init__.py"), os.path.join(gen_py_path, "dicts.dat")],