# -*- coding: utf-8 -*-
import sys
+import os
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtDeclarative import QDeclarativeView
# Create an URL to the QML file
#url = QUrl('view.qml')
-url = QUrl ("../ui/main.qml")
+if os.path.exists ("../ui/main.qml"):
+ url = QUrl ("../ui/main.qml")
+else:
+ url = QUrl ("/usr/lib/mussorgsky/qml/main.qml")
# Set the QML file and show
view.setSource(url)
view.engine().quit.connect (app.quit)