Article Outline
Example Python program compileMinStdLib.i.py
Modules
- import clr
Code
Python example
import clr
clr.CompileModules(r"minstdlib.dll",
r"C:\Program Files (x86)\IronPython 2.7\Lib\StringIO.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\fnmatch.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\shutil.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\zipfile.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\SocketServer.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\BaseHTTPServer.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\shlex.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\opcode.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\dis.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\inspect.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\tokenize.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\token.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\trace.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\codecs.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\encodings\__init__.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\encodings\aliases.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\encodings\hex_codec.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\getpass.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\threading.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\subprocess.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\traceback.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\hmac.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\weakref.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\copy.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\urllib2.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\base64.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\struct.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\string.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\hashlib.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\ntpath.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\stat.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\genericpath.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\warnings.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\linecache.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\types.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\UserDict.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\_abcoll.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\abc.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\_weakrefset.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\functools.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\urlparse.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\collections.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\keyword.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\heapq.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\mimetools.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\tempfile.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\io.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\random.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\rfc822.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\posixpath.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\bisect.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\urllib.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\nturl2path.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\__future__.py",
r"C:\Program Files (x86)\IronPython 2.7\Lib\os.py")
Useful Links
- Articles: https://python-commandments.org/
- Python shell: https://bsdnerds.org/learn-python/
- Tutorial: https://pythonprogramminglanguage.com/