File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010jobs :
1111 publish :
12- runs-on : ubuntu -latest
12+ runs-on : windows -latest
1313 env :
14- python_ver : 3.11
14+ python_ver : 3.11.4
1515
1616 steps :
1717 - uses : actions/checkout@v2
18- - name : Set up Python ${{ env .python-version }}
18+ - name : Set up Python ${{ matrix .python-version }}
1919 uses : actions/setup-python@v2
2020 with :
21- python-version : ${{ env .python-version }}
21+ python-version : ${{ matrix .python-version }}
2222 - name : get version
2323 id : version
2424 uses : notiz-dev/github-action-json-property@release
3030 run : |
3131 python -m pip install --upgrade pip
3232 pip install -r ./requirements.txt -t ./lib
33- cp ./lib/pywin32_system32/pythoncom311.dll .
34- cp ./lib/pywin32_system32/pywintypes311.dll .
35- zip -r Flow.Launcher.Plugin.MSOutlook.zip . -x '*.git*'
33+ - name : Compress Plugin
34+ run : Compress-Archive -Path * -DestinationPath Flow.Launcher.Plugin.MSOutlook.zip
35+ shell : pwsh
36+ - name : List ZIP file
37+ run : Get-ChildItem -Path . -Filter *.zip
38+ shell : pwsh
3639 - name : Publish
3740 if : success()
3841 uses : softprops/action-gh-release@v1
Original file line number Diff line number Diff line change 33from datetime import datetime , timedelta
44
55parent_folder_path = os .path .abspath (os .path .dirname (__file__ ))
6- sys .path .append (parent_folder_path )
76sys .path .append (os .path .join (parent_folder_path , 'lib' ))
87sys .path .append (os .path .join (parent_folder_path , 'plugin' ))
8+ sys .path .append (parent_folder_path )
9+
10+ # If pywin32 is vendored, add its DLL folder to the search path before importing win32com
11+ pywin32_system32 = os .path .join (parent_folder_path , 'lib' , 'pywin32_system32' )
12+ if os .path .isdir (pywin32_system32 ):
13+ try :
14+ # Python 3.8+: preferred way
15+ os .add_dll_directory (pywin32_system32 )
16+ except Exception :
17+ # Fallback: prepend to PATH
18+ os .environ ["PATH" ] = pywin32_system32 + os .pathsep + os .environ .get ("PATH" , "" )
19+
920
1021from flowlauncher import FlowLauncher
1122import webbrowser
Original file line number Diff line number Diff line change 11flowlauncher
2- pywin32 == 311
2+ pywin32
You can’t perform that action at this time.
0 commit comments