#!/usr/bin/python
#
# Copyright (C) 2010 Alexander Taler <dissent@0--0.org>
#

# This file is part of hsh.

# hsh is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# hsh is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with hsh.  If not, see <http://www.gnu.org/licenses/>.

######################################################################

import os
import sys

# Modify Python's search path to find the hsh source,
# assuming this was run from the bin directory.
(hshloc, dirext) = os.path.split(sys.path[0])
if dirext == "":
    (hshloc, dirext) = os.path.split(sys.path[0])
sys.path[0] = os.path.join(hshloc, "src")

import hsh
import hsh.curses_display

hsh.curses_display.run()

