-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.py
26 lines (20 loc) · 1.16 KB
/
com.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# ----------------------------------------------------------------------------------------------------------------------------
# LOGGING
# ----------------------------------------------------------------------------------------------------------------------------
import logging
logger=logging.getLogger(__name__)
# ----------------------------------------------------------------------------------------------------------------------------
# Packages
# ----------------------------------------------------------------------------------------------------------------------------
#from .python import ensure_installed
#ensure_installed("pythoncom win32com")
# ----------------------------------------------------------------------------------------------------------------------------
# Normal Imports
# ----------------------------------------------------------------------------------------------------------------------------
from typing import *
def scripting_dict_2_dict(scripting_dict:object)->dict:
python_dict={}
if scripting_dict is not None:
for key in scripting_dict.Keys():
python_dict[key]=scripting_dict.Item(key)
return python_dict