#!/usr/bin/python

#   test-mp3togo  

# mp3togo executable for testing a dev tree
#
# (c) Simeon Veldstra 2006  <reallifesim@gmail.com>
#
# This software is free.
# 
# This program 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 may redistribute this program under the terms of the
# GNU General Public Licence version 2
# Available in this package or at http://www.fsf.org

import sys
import os

dir = '/home/sim/projects/mp3togo/'
trees = os.listdir(dir)
trees = filter(lambda x: x.startswith('mp3togo-'), trees)
trees.sort()

modpath = os.path.join(dir, trees[-1])
# Replace modpath with the path to the source tree

sys.path.insert(0, modpath)
from mp3togo.main import main

main(sys.argv)

