Skip to content

Commit

Permalink
Adding a comment on the use of DispatchEx for future reference
Browse files Browse the repository at this point in the history
  • Loading branch information
blnicho committed Jun 17, 2019
1 parent 57104ba commit fc6fef5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyutilib/excel/spreadsheet_win32com.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
# Attempt to import win32com stuff. If this fails, then
# set a flag to tell the ExcelSpreadsheet class that it should
# raise an exception in its constructor.
#

# BLN: Use DispatchEx instead of Dispatch to make sure we launch
# BLN: a new instance of Excel, otherwise we unintentionally
# BLN: close any open Excel Windows when importing Pyomo
# BLN: See https://github.com/Pyomo/pyomo/issues/355
from win32com.client import DispatchEx as Dispatch
from pythoncom import CoInitialize, CoUninitialize, com_error

Expand Down

0 comments on commit fc6fef5

Please sign in to comment.