Darrell Hawley: Home Page

Monday, January 19, 2009

Note to Self 6 - IronPython, pyc.py and SciTE

  • The pyc.py file can compile you IronPython code into .NET executables.
  • The pyc.py file is part of the sample code released with IronPython. It can be found here. Look for the "IronPython-2.0-Samples.zip" link.
  • Typing out "[IP directory]\ipy [code directory]pyc.py" explicitly everytime you want to use the tool is somewhat annoying. Consider creating a script to do this for you. Here's a simple batch file.

    cd C:\data\FeClass
    c:\fepython\ipy.exe pyc.py class.py /main:main.py

    Note that you'll have to copy the pyc.py file to the same directory as your code for this to work.
  • IronPython Studio just isn't up to snuff. You're better off to use a text editor and a build script
  • I like SciTE as my IronPython editor even more so than Notepad++. I really like that I can run my Python or IronPython script from SciTE and the output the normally would be displayed in the command window is captured in SciTE.

Labels: , ,

0 Comments:

Post a Comment

<< Home