Include Python3 in the Windows installer

Richard Kimberly Heck rikiheck at gmail.com
Sat Mar 11 06:09:28 UTC 2023


On 3/10/23 17:04, Jean-Marc Lasgouttes wrote:
> Le 10/03/2023 à 22:21, Yu Jin a écrit :
>> all the win* imports from lyxpreview_tools.py fail, but those are in 
>> a try-except block
>
> What do we gain when they ar present? It might be important enough to 
> warrant having those modules.

     try:
         import pywintypes
         import win32con
         import win32event
         import win32file
         import win32pipe
         import win32process
         import win32security
         import winerror
     except:
         sys.stderr.write("Consider installing the PyWin extension 
modules " \
                          "if you're irritated by windows appearing 
briefly.\n")

Riki




More information about the lyx-devel mailing list