source: trunk/src/pxeconfig.in @ 170

Last change on this file since 170 was 170, checked in by bas, 15 years ago

pxe_global.py:

  • moved some more functions to the library the exception Class

src/pxeconfigd.py:

  • just import the server side as module
  • Property keywords set to Id
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.2 KB
RevLine 
[147]1#!@PYTHON@
[2]2#
[104]3# set ts=4, sw=4
4#
[2]5# Author: Bas van der Vlies <basv@sara.nl>
6# Date  : 16 February 2002
7#
[29]8# SVN info
9#  $Id: pxeconfig.in 170 2009-08-19 08:13:06Z bas $
[2]10#
[14]11# Copyright (C) 2002
[6]12#
[14]13# This file is part of the pxeconfig utils
[6]14#
[14]15# This program is free software; you can redistribute it and/or modify it
16# under the terms of the GNU General Public License as published by the
17# Free Software Foundation; either version 2, or (at your option) any
18# later version.
[6]19#
[14]20# This program is distributed in the hope that it will be useful,
21# but WITHOUT ANY WARRANTY; without even the implied warranty of
22# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23# GNU General Public License for more details.
[6]24#
[14]25# You should have received a copy of the GNU General Public License
26# along with this program; if not, write to the Free Software
27# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
28#
[2]29import sys
30
[160]31try:
32        import pxeconfig
[161]33except ImportError, detail:
34        sys.path.append('@prefix@/lib/python@PYTHON_VERSION@/site-packages/pxeconfig')
[160]35        import pxeconfig
36
[170]37from pxe_global import *
38
[120]39if __name__ == '__main__':
[119]40        try:
[139]41                pxeconfig.main()
42        except pxeconfig.PxeConfig, detail:
[119]43                print detail
44                sys.exit(1)
Note: See TracBrowser for help on using the repository browser.