Skip to content

Commit

Permalink
Fix traceback generation on windows, thanks to Bruno Pereira Gomes.
Browse files Browse the repository at this point in the history
  • Loading branch information
barbieri committed Jun 3, 2007
1 parent 625e8fc commit e4f7b14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gtk/eagle.py
Expand Up @@ -1470,11 +1470,11 @@ def show_exception( self, exctype, value, tb ):
def save_exception( self, exctype, value, tb ):
import traceback
import time
import tempfile
progname = os.path.split( sys.argv[ 0 ] )[ -1 ]
filename = "%s-%s-%s.tb" % ( progname,
os.getuid(),
filename = "%s-%s.tb" % ( progname,
int( time.time() ) )
filename = os.path.join( os.path.sep, "tmp", filename )
filename = os.path.join( os.path.sep, tempfile.gettempdir(), filename )
f = open( filename, "wb" )
try:
os.chmod( filename, 0600 )
Expand Down

0 comments on commit e4f7b14

Please sign in to comment.