Commits

Vernon Cole  committed 1c6fb1c Merge

merge branch

  • Participants
  • Parent commits 0ce3510, 0a0db63

Comments (0)

Files changed (1)

File sqlserver_ado/base.py

 import adodbapi as Database
 ##import adodbapi.ado_consts as adc
 ## Database.adodbapi.defaultCursorLocation = adc.adUseServer # TODO: remove or sanitize this (VDC)
-import adodbapi.remote as Remote   # either the local or remote driver will be selected later... load both now.
+# NOTE: adodbapi.remote may be dynamically imported below
 
 from introspection import DatabaseIntrospection
 from creation import DatabaseCreation
 
         connection_dictionary = make_connection_dict(self.settings_dict)
         if 'proxy_host' in connection_dictionary:
+            import adodbapi.remote as Remote   # dynamic import to avoid importing Pyro4 if not needed
             self.connection = Remote.connect(connection_dictionary, conn_args)
         else:
             self.connection = Database.connect(connection_dictionary, conn_args)