#!/usr/bin/env python # # Copyright 2001-2003 Free Software Foundation # # This file is part of GNU Enterprise. # # GNU Enterprise 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, or (at your option) any later version. # # GNU Enterprise 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 program; see the file COPYING. If not, # write to the Free Software Foundation, Inc., 59 Temple Place # - Suite 330, Boston, MA 02111-1307, USA. import os import sys if sys.platform == "win32": if __name__ == "__main__": _BASE = os.path.abspath (os.path.join (os.path.dirname (sys.argv[0]), "..")) _newpath = os.path.abspath (os.path.dirname (sys.argv[0])) if os.environ.has_key ("PATH"): _newpath = _newpath + ";" + os.environ ["PATH"] os.environ ["PATH"] = _newpath else: _BASE = os.path.abspath (os.path.join (os.path.dirname (__file__), "..")) os.putenv ("PYTHONCASEOK","1") if os.path.isdir (os.path.join (_BASE, "extras")): sys.path.append (os.path.join (_BASE, "extras")) from gnue.navigator.GNClient import GNClient if __name__ == '__main__': GNClient().run()