-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path00_references.py
More file actions
33 lines (27 loc) · 777 Bytes
/
Copy path00_references.py
File metadata and controls
33 lines (27 loc) · 777 Bytes
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
27
28
29
30
31
32
33
import sys
import gc
import clr
clr.AddReference('System.Core')
import System.Linq
clr.ImportExtensions(System.Linq)
import os
import time
import traceback
#import clrtype
#import json
import random
from System import *
from System.Collections.Generic import List
from System.Threading.Tasks import Task
from System.Threading import Monitor, Thread
from System.IO import Path
from System.Timers import Timer
# Adds reference to already loaded in RAM assembly
# Meanwhile clr.AddReferenceToFileAndPath tries to load assembly even if it already was loaded in RAM
# so it loads uninitialized copy of assembly.
# clr.AddReferenceByName("OTAPI")
# You can import extensions defined in a class:
# import SomeClass
# clr.ImportExtensions(SomeClass)
global loaded
loaded = False