# HG changeset patch # User drewp@bigasterisk.com # Date 2007-03-16 21:10:44 # Node ID d4aff817a304940b977040a71d3ac0fb7d9c99b4 # Parent c579174d73b2e92d42539e6c6943e6e25aa08db1 add compatibility with louie.dispatcher diff --git a/bin/curvecalc b/bin/curvecalc --- a/bin/curvecalc +++ b/bin/curvecalc @@ -8,7 +8,10 @@ from __future__ import division 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 diff --git a/light9/curve.py b/light9/curve.py --- a/light9/curve.py +++ b/light9/curve.py @@ -2,7 +2,10 @@ from __future__ import division import sys,math,glob,random,os 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 import run_local from light9 import Submaster, dmxclient, networking, cursors diff --git a/light9/zoomcontrol.py b/light9/zoomcontrol.py --- a/light9/zoomcontrol.py +++ b/light9/zoomcontrol.py @@ -1,6 +1,9 @@ from __future__ import division import Tkinter as tk -from dispatch import dispatcher +try: + from dispatch import dispatcher +except ImportError: + import louie as dispatcher from light9 import cursors class Zoomcontrol(object,tk.Canvas):