diff python/codeedit.py @ 279:2ccd57b1d78c

Fix register allocator to do burn2 OK
author Windel Bouwman
date Sat, 12 Oct 2013 09:56:23 +0200
parents 046017431c6a
children 02385f62f250
line wrap: on
line diff
--- a/python/codeedit.py	Sun Sep 29 14:08:15 2013 +0200
+++ b/python/codeedit.py	Sat Oct 12 09:56:23 2013 +0200
@@ -1,6 +1,7 @@
 #!/usr/bin/python
 
 import sys
+import os
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 import inspect
@@ -262,7 +263,9 @@
 
     def setFileName(self, fn):
         self.filename = fn
-        if not fn:
+        if fn:
+            fn = os.path.basename(fn)
+        else:
             fn = 'Untitled'
         self.setWindowTitle(fn)