#!/usr/pkg/bin/python2.7

#######################################################################
# This file is part of Pyblosxom.
#
# Copyright (c) 2003 - 2007 Wari Wahab
# 
# Pyblosxom is distributed under the MIT license.  See the file LICENSE
# for distribution details.
#
# $Id: pyblosxom.py 913 2006-08-08 20:29:42Z willhelm $
#######################################################################

import os, sys

# this allows for a config.py override
script = os.environ.get('SCRIPT_FILENAME', None)
if script is not None:
    sys.path.insert(0, os.path.dirname(script))
sys.path.insert(0, os.getcwd())

from Pyblosxom.commandline import command_line_handler

if __name__ == '__main__':
    sys.exit(command_line_handler("pyblosxom-cmd", sys.argv))
