view start_developer.py @ 12:d492f137cd3c grumpy-goblin

Fix to cherrypy's start feature for Win users.
author sirebral
date Fri, 24 Jul 2009 10:03:22 -0500
parents 4385a7d0efd1
children e8260c6cb309
line wrap: on
line source

#!/usr/bin/env python

import sys
import os

import pyver
pyver.checkPyVersion()


for key in sys.modules.keys():
    if 'orpg' in key:
        del sys.modules[key]

from orpg.orpg_wx import *
import orpg.main

if WXLOADED:
    mainapp = orpg.main.orpgApp(0)
    mainapp.MainLoop()
else:
    print "You really really need wx!"