Python Hacking Revisited

Posted by emil on July 13th, 2005

It is about a year since I last layed hands on Python, but recently my interest started to grow again. As a former Perl-hacker, I must say I really like Python in a lot of way. It has the same power as Perl, but with better structure and more readable syntax.

Anyway… While coding some utility scripts on my Windows machine I found a need for searching the PATH environment variable after some executables. I created a small utility module that searches any path (semi colon separated or not) for a specific file and returns the absolute path if it was found or None if it was not.

You can get the piece of software here: pathfind.py.

If you omit the second argument in the search function, os.environ['PATH'] will actually be used as default. You can change that to any valid path of your choice.

NOTE! This script is only compatible with Win32-environments as of now.

iwftools created on SourceForge

Posted by emil on July 13th, 2005

A little hobby scripting of mine resulted in the creation of a new Open Source project at SourceForge.net. At the moment I’m working on the libraries so I can publish them in a week or two. If you think it sounds interesting you should check it later for new versions.

http://sourceforge.net/projects/iwftools/