[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame/__init__.py error on Mac OS X 10.4



Hi Bob,

I am trying to install from source here using Darwinports, but I took a look at the package pygame-1.7.0-py2.4-macosx10.3.zip from pythonmac.org (there doesn't appear to be a 10.4 package yet), and I believe it has the same problem.

From the pythonmac package, the file macosx.py in the pygame_platlib_1.7.0.pkg package contains similar lines:

"""
# about line 140
# running inside a bundle, change dir
if (os.getcwd() == '/') and len(sys.argv) > 1:
os.chdir(os.path.basedir(sys.argv[0])) # basedir method does not exist in os.path module
"""


Is the call to os.path.basedir() supposed to be there?

Thanks for you help,
Todd


On 13-Jun-05, at 1:08 AM, Bob Ippolito wrote:


On Jun 13, 2005, at 2:53 AM, Todd Mortimer wrote:


I am running pygame 1.6.2 on my OS X box here, and keep coming up with the following error whenever I try to initialize pygame:


Don't use 1.6.2, use 1.7 from <http://pythonmac.org/packages/>.

-bob