diff bin/curvecalc @ 332:d4aff817a304

add compatibility with louie.dispatcher
author drewp@bigasterisk.com
date Fri, 16 Mar 2007 21:10:44 +0000
parents a3267d8c498e
children 8a1ec8aca432
line wrap: on
line diff
--- a/bin/curvecalc	Mon Jun 19 01:08:07 2006 +0000
+++ b/bin/curvecalc	Fri Mar 16 21:10:44 2007 +0000
@@ -8,7 +8,10 @@
 import xmlrpclib,time,socket,sys,textwrap,math,glob,random,os,optparse
 from bisect import bisect_left,bisect,bisect_right
 import Tkinter as tk
-from dispatch import dispatcher
+try:
+    from dispatch import dispatcher
+except ImportError:
+    import louie as dispatcher 
 from twisted.internet import reactor,tksupport
 import twisted
 from twisted.web.xmlrpc import Proxy