From: <dg...@us...> - 2009-12-26 18:46:49
|
Revision: 445 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=445&view=rev Author: dgranda Date: 2009-12-26 18:46:42 +0000 (Sat, 26 Dec 2009) Log Message: ----------- Removing wrong start scripts to avoid confusion Removed Paths: ------------- pytrainer/trunk/pytrainer.py pytrainer/trunk/pytrainer.sh Deleted: pytrainer/trunk/pytrainer.py =================================================================== --- pytrainer/trunk/pytrainer.py 2009-12-26 15:06:35 UTC (rev 444) +++ pytrainer/trunk/pytrainer.py 2009-12-26 18:46:42 UTC (rev 445) @@ -1,54 +0,0 @@ -#!/usr/bin/python -# -*- coding: iso-8859-1 -*- - -#Copyright (C) Fiz Vazquez vu...@si... - -#This program 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 2 -#of the License, or (at your option) any later version. - -#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 should have received a copy of the GNU General Public License -#along with this program; if not, write to the Free Software -#Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -import locale -import gettext -import sys -import pygtk -pygtk.require('2.0') -import gtk -import gtk.glade -import os - -data_path = "./" - -DIR = "./locale" - -gettext.bindtextdomain("pytrainer", DIR) -gtk.glade.bindtextdomain("pytrainer", DIR) -gtk.glade.textdomain("pytrainer") -gettext.textdomain("pytrainer") -gettext.install("pytrainer",DIR,unicode=1) - -from pytrainer.main import pyTrainer - - -os.popen("MOZILLA_FIVE_HOME=/usr/lib/firefox") - -# 21.03.2008 - dgranda -# check command line arguments -# for more complex handling, see http://docs.python.org/lib/module-getopt.html -# only -d (for debug log level) is supported right now -def main(argv): - #Lanzamos el pytrainer - pytrainer = pyTrainer(None, data_path) - #pytrainer.run() - -if __name__ == "__main__": - main(sys.argv[1:]) Deleted: pytrainer/trunk/pytrainer.sh =================================================================== --- pytrainer/trunk/pytrainer.sh 2009-12-26 15:06:35 UTC (rev 444) +++ pytrainer/trunk/pytrainer.sh 2009-12-26 18:46:42 UTC (rev 445) @@ -1,9 +0,0 @@ -#/bin/sh -# First arg is log level, e.g. -d for DEBUG - -export LD_LIBRARY_PATH=/usr/lib/firefox -# Building xulrunner path to avoid problems when upgrading -PATH_XULRUNNER=/usr/lib -XULRUNNER_VERSION=`ls "$PATH_XULRUNNER" | grep xulrunner` -export MOZILLA_FIVE_HOME=$PATH_XULRUNNER/$XULRUNNER_VERSION -python pytrainer.py $* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |