diff --git a/setup.py b/setup.py index 6d0551a3f..7432f3453 100644 --- a/setup.py +++ b/setup.py @@ -76,7 +76,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 = {} @@ -94,10 +94,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")],