* export PYTHONPATH to sfi.py
[sface.git] / sface-run
index eecabd2..5c121e6 100755 (executable)
--- a/sface-run
+++ b/sface-run
@@ -5,7 +5,7 @@ import sys
 from optparse import OptionParser
 from PyQt4.QtGui import *
 
-sys.path.append(".")
+sys.path.insert(0, ".")
 exe = os.path.abspath(sys.argv[0])
 
 def using_env(e):
@@ -40,8 +40,8 @@ if sys.platform == "darwin":
     os.environ["PATH"] = PATH
     os.environ["DYLD_LIBRARY_PATH"] = DYLD_LIBRARY_PATH
     os.environ["DYLD_FRAMEWORK_PATH"] = DYLD_FRAMEWORK_PATH
-    if os.path.exists(RESOURCES):  sys.path.append(RESOURCES)
-    if os.path.exists(FRAMEWORKS): sys.path.append(FRAMEWORKS)
+    if os.path.exists(RESOURCES):  sys.path.insert(0, RESOURCES)
+    if os.path.exists(FRAMEWORKS): sys.path.insert(0, FRAMEWORKS)
 
 elif sys.platform == "linux2":
     sys.path.extend(["/usr/share", "/usr/share/sface"])