Permalink
Browse files

work towards the new absolute import, also prevents picking the old n…

…ode.py from ly instead of from sys.path
  • Loading branch information...
1 parent cbee2dc commit 28a5c61a759e4ba3e783fcf9be28a204873a2687 @wbsoft wbsoft committed Apr 7, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 frescobaldi_app/ly/dom.py
  2. +1 −1 frescobaldi_app/main.py
View
1 frescobaldi_app/ly/dom.py
@@ -36,6 +36,7 @@
"""
from __future__ import unicode_literals
+from __future__ import absolute_import # prevent picking old stale node.py from package
import fractions
import re
View
2 frescobaldi_app/main.py
@@ -34,7 +34,7 @@
from PyQt4.QtCore import QSettings, QUrl
from PyQt4.QtGui import QApplication, QTextCursor
-import toplevel # Find all modules and packages as toplevel
+from . import toplevel # Find all modules and packages as toplevel
import info # Information about our application
import app # Construct QApplication
import guistyle # Setup GUI style

0 comments on commit 28a5c61

Please sign in to comment.