In IronPython Console “import random” works. But I couldn’t manage to import it in Python Script.
Is there a way to do it? Thanks in advance…
In IronPython Console “import random” works. But I couldn’t manage to import it in Python Script.
Is there a way to do it? Thanks in advance…
import sys
sys.path.append(“C:\Program Files (x86)\IronPython 2.7\Lib”)
import random
does the trick!
you have to add the path to your random.py library.
something like:
sys.path.append("/where_python _resides/lib")