Commits

m0e_lnx  committed fef9037

Fixed absolute import error on widgets.py

  • Participants
  • Parent commits 2a50c7b

Comments (0)

Files changed (1)

File view/widgets.py

 import gtk
 import gobject
 import glib
-from .utils import repository
-from .utils import vl
 import os
+import sys
+
+sys.path.append(os.path.join(os.getcwd(), '..'))
+try:
+    from utils import repository
+    from utils import vl
+except:
+    pass
+
 
 __author__ = 'Moises Henriquez'
 __author_email__ = 'moc.liamg@xnl.E0M'[::-1]