00001
00002
00003
00004 """
00005
00006 ScrumPy -- Metabolic Modelling with Python
00007
00008 Copyright Mark Poolman 1995 - 2002
00009
00010 This file is part of ScrumPy.
00011
00012 ScrumPy is free software; you can redistribute it and/or modify
00013 it under the terms of the GNU General Public License as published by
00014 the Free Software Foundation; either version 2 of the License, or
00015 (at your option) any later version.
00016
00017 ScrumPy is distributed in the hope that it will be useful,
00018 but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00020 GNU General Public License for more details.
00021
00022 You should have received a copy of the GNU General Public License
00023 along with ScrumPy; if not, write to the Free Software
00024 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00025
00026 """
00027
00028 import os,sys
00029
00030
00031
00032
00033
00034 import sys,os
00035 import BasicInfo
00036
00037 path = os.sep.join(BasicInfo.GetLoc().split(os.sep)[:-1])
00038 sys.path.append(path)
00039 import ScrumPy
00040
00041 try:
00042 import ScrumPyrc
00043 except:
00044 pass
00045
00046
00047
00048
00049
00050 from ScrumPy.ThirdParty.idle import IdleConf
00051
00052
00053 idle_dir = os.path.dirname(IdleConf.__file__)
00054 IdleConf.load(idle_dir)
00055
00056
00057 from ScrumPy.ThirdParty.idle import PyShell
00058
00059
00060
00061 idleinit ="""
00062 #import sys
00063 import ScrumPy
00064 from tkGUI import gui
00065 from ScrumPy.ThirdParty.idle import ObjectBrowser
00066 ScrumPy.Init(gui)
00067 gui.init4idle(PyShell)
00068 """
00069
00070 sys.argv.append("-c")
00071 sys.argv.append(idleinit)
00072 sys.argv.append("-t")
00073 sys.argv.append("ScrumPy - metabolic modelling in Python")
00074 PyShell.main()
00075
00076
00077
00078
00079
00080
00081
00082