As we know, Ironpython Standard Library Path needs to be added to
so that python can find modules like
import sys sys.path.append(r'C:\Program Files (x86)\IronPython 2.7\Lib) import os # importing os without appending to path raises Import Error
But I recently found out something that has intrigued me:
math modules can be imported without modifying the path which is empty by default
# top of script import re import random
Does anyone know how that’s possible? Are there other modules that can also be imported without being on a PATH location? Or perhaps point me to me the portion of the source code where that’s defined?
I looked through this but did not see anything that answers these questions.