Update of /cvsroot/pybot/pybot
In directory usw-pr-cvs1:/tmp/cvs-serv32496
Modified Files:
ChangeLog
Added Files:
pybot.py
Removed Files:
run
Log Message:
- Implemented new startup system.
- Converted tabs to spaces so people using other editors feel
confortable as well (suggested by John Thingstad).
--- NEW FILE: pybot.py ---
#!/usr/bin/python
#
# Copyright (c) 2000-2001 Gustavo Niemeyer <nie...@co...>
#
# This file is part of pybot.
#
# pybot 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.
#
# pybot 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 pybot; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import imp
import sys
import os
def main():
try:
module = imp.find_module("pybot/runner")
except ImportError:
sys.exit("error: couldn't find module pybot.runner")
module[0].close()
while 1:
ret = os.system("python "+module[1])
if ret != 0:
break
if __name__ == "__main__":
main()
# vim:sw=4:ts=4:et
Index: ChangeLog
===================================================================
RCS file: /cvsroot/pybot/pybot/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ChangeLog 2001/11/14 15:28:41 1.2
--- ChangeLog 2001/12/04 00:57:37 1.3
***************
*** 1,2 ****
--- 1,6 ----
+ 2001-12-03 Gustavo Niemeyer <nie...@co...>
+ * pybot.py, pybot/runner.py: New files with new startup system.
+ * run, scripts/pybot.py: Removed.
+
2001-11-14 Gustavo Niemeyer <nie...@co...>
* modules/messages.py: Added help.
--- run DELETED ---
|