# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA __author__ = 'ThorN' __version__ = '1.1.1' import b3, sys, os, time from optparse import OptionParser import pkg_handler modulePath = pkg_handler.resource_directory(__name__) def run_autorestart(args=None): script = os.path.join(modulePath, 'run.py') if os.path.isfile(script + 'c'): script += 'c' if args: script = '%s %s %s' % (sys.executable, script, ' '.join(args)) else: script = '%s %s' % (sys.executable, script) while True: try: print 'Running in auto-restart mode...'
import sys import platform import pkg_handler import traceback import time import signal import shutil from tempfile import TemporaryFile from ConfigParser import NoOptionError from ConfigParser import NoSectionError __author__ = 'ThorN' __version__ = '1.11' modulePath = pkg_handler.resource_directory(__name__) versionId = 'v%s' % __version__ version = '^8www.bigbrotherbot.net ^0(^8b3^0) ^9%s ^9[^3AngryBiscuit^9]^3' % versionId confdir = None console = None # STRINGS B3_TITLE = 'BigBrotherBot (B3) %s' % versionId B3_TITLE_SHORT = 'B3 %s' % versionId B3_COPYRIGHT = 'Copyright © 2005 Michael "ThorN" Thornton' B3_LICENSE = 'GNU General Public License v2' B3_FORUM = 'http://forum.bigbrotherbot.net/' B3_WEBSITE = 'http://www.bigbrotherbot.net' B3_WIKI = 'http://wiki.bigbrotherbot.net/'