# Copyright (c) 2004 Guido Wesdorp. All rights reserved.
# Contributions by Roman Joost (2005, 2006)
# See also LICENSE.txt
# $Id$
import os.path

def get_silvablog_version():
    fp = "%s/version.txt" % get_product_root()
    f = open(fp,'r')
    vers = f.read()
    return vers.strip()

def get_product_root():
    root, file = os.path.split(os.path.abspath(__file__))
    return root


