Skip to content

Commit

Permalink
Merge fc6fef5 into fa6ce97
Browse files Browse the repository at this point in the history
  • Loading branch information
blnicho committed Jun 17, 2019
2 parents fa6ce97 + fc6fef5 commit 1a6c405
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyutilib/excel/spreadsheet_win32com.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@
# 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.
#
from win32com.client.dynamic import Dispatch

# 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

from pyutilib.excel.base import ExcelSpreadsheet_base
Expand Down

0 comments on commit 1a6c405

Please sign in to comment.