If I can deduce the intent correctly, this change should be implemented by calling os.path.abspath() on the value returned by directory() before putting it into sys.path. Jeremy