diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-02 19:36:35 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-02 19:36:35 +0000 |
commit | 1242ecdbfafd008263f0cca418c10dc1322ff21f (patch) | |
tree | 657a90e8d83af95f6fe876d2ec296603b08b26b7 /externals/grill/py/scripts/threads.py | |
parent | 9815096db22c73cacdbb65512d1b61d633db7fa8 (diff) |
""
svn path=/trunk/; revision=268
Diffstat (limited to 'externals/grill/py/scripts/threads.py')
-rw-r--r-- | externals/grill/py/scripts/threads.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/externals/grill/py/scripts/threads.py b/externals/grill/py/scripts/threads.py index f7740bd3..ec0488d7 100644 --- a/externals/grill/py/scripts/threads.py +++ b/externals/grill/py/scripts/threads.py @@ -16,7 +16,11 @@ For threading support pyext exposes several function and variables """ -import pyext +try: + import pyext +except: + print "ERROR: This script must be loaded by the PD/Max pyext external" + from time import sleep ################################################################# @@ -33,7 +37,7 @@ class ex1(pyext._class): # method for bang to any inlet def bang_(self,n): - for i in range(self.loops): + for i in xrange(self.loops): # if _shouldexit is true, the thread ought to stop if self._shouldexit: break |