From 6354b18c5b837436767f53b4b45238a802687324 Mon Sep 17 00:00:00 2001 From: hanwen Date: Mon, 27 Jun 2005 12:25:13 +0000 Subject: [PATCH] (datadir): py2exe comments. --- python/lilylib.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/lilylib.py b/python/lilylib.py index a9d6ebacde..934b1eebf4 100644 --- a/python/lilylib.py +++ b/python/lilylib.py @@ -46,6 +46,8 @@ sys.path.insert (0, os.path.join (datadir, 'python')) # Customize these + +# UGH. - why? Py2exe barfs if __name__ == '__main__': import lilylib as ly global _;_=ly._ @@ -73,6 +75,8 @@ if __name__ == '__main__': # there are recursion limits for some patterns in Python 1.6 til 2.1. # fix this by importing pre instead. Fix by Mats. + +# Ugh. py2exe barfs on conditional imports if float (sys.version[0:3]) <= 2.1: try: import pre @@ -86,6 +90,9 @@ else: # Attempt to fix problems with limited stack size set by Python! # Sets unlimited stack size. Note that the resource module only # is available on UNIX. + + +# Ugh. py2exe barfs on conditional imports try: import resource resource.setrlimit (resource.RLIMIT_STACK, (-1, -1)) -- 2.39.5