Merge "Fix pythoncom thread model error"
This commit is contained in:
@@ -12,17 +12,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import struct
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if struct.calcsize("P") == 8 and sys.platform == 'win32':
|
|
||||||
# This is needed by Nano Server.
|
|
||||||
# Set COINIT_MULTITHREADED only on x64 interpreters due to issues on x86.
|
|
||||||
# sys.coinit_flags needs to be set before importing pythoncom
|
|
||||||
sys.coinit_flags = 0
|
|
||||||
import pythoncom
|
|
||||||
pythoncom.CoInitializeEx(pythoncom.COINIT_MULTITHREADED)
|
|
||||||
|
|
||||||
from oslo_log import log as oslo_logging
|
from oslo_log import log as oslo_logging
|
||||||
|
|
||||||
from cloudbaseinit import conf as cloudbaseinit_conf
|
from cloudbaseinit import conf as cloudbaseinit_conf
|
||||||
|
|||||||
Reference in New Issue
Block a user