Prabhu
Prabhu

Reputation: 3538

How to find the installation path of IronPython

I have few python scripts of which one is to be executed in IronPython interpreter. How to find the installation path of IronPython. I searched the registry. To my surprise, it was not there.

Upvotes: 1

Views: 3533

Answers (2)

J19
J19

Reputation: 717

From the registry, you can check HKLM\SOFTWARE\IronPython\2.7\InstallPath

It was useful for me.

https://ironpython.codeplex.com/workitem/34692

Version number can be retrieved like this (as of IPy 2.7.4):

//Implementation::version backs "sys.version_info"
var version_tuple = new IronPython.Runtime.Implementation().version;
var version = version_tuple.major + "." + version_tuple.minor;

Upvotes: 2

nosklo
nosklo

Reputation: 223122

Try this:

import sys
print sys.executable

Disclaimer: I don't know if it will work on IronPython.

Upvotes: 2

Related Questions