Commits

gamedude  committed ba576f2

Fixed stdout redirect with PyS60 1.9.1

  • Participants
  • Parent commits 621064b
  • Branches symbian_s60

Comments (0)

Files changed (1)

File symbian/app/pygame_main.py

 import os
 import sys
 
-
-if os.name == "e32":
+f = None
+if sys.platform == "symbian_s60":
     f=open('/data/pygame/stdout.txt','w')
     sys.stdout = f
     sys.stderr = f
                    '__name__': '__main__',
                    '__file__': path_to_app } )
 
-if os.name == "e32":
+if f is not None:
     sys.stdout.flush()
     sys.stdout.close()