Commits

Anonymous committed 69af47a

setup works from correct directory

Comments (0)

Files changed (2)

docs/tut/ChimpLineByLine.html

 
 <br><table border=1 bgcolor=#ddcc88><tr><td><pre>
 fistpos = pygame.mouse.get_pos()	
-pressed = pygame.mouse.get_button()[0]
+pressed = pygame.mouse.get_pressed()[0]
 if not reload and pressed:
     if chimppos.collidepoint(fistpos):
         hitsound.play()
     raise SystemExit, "Pygame requires python 2.0 or higher"
 
 
+#get us to the correct directory
+import os, sys
+path = os.path.split(os.path.abspath(sys.argv[0]))[0]
+os.chdir(path)
+
+
 
 import os.path, glob
 import distutils.sysconfig