display git url as well
[sface.git] / sface.bin
index 44fa432..95466b9 100755 (executable)
--- a/sface.bin
+++ b/sface.bin
@@ -1,10 +1,20 @@
 #!/bin/bash
 
 #!/bin/bash
 
-#export PATH=$HOME/stree/sfa//trunk/:$PATH
+DIR=$(dirname $0)
+CONTENTS=$(dirname $DIR)
+RESOURCES=$CONTENTS/Resources
+FRAMEWORKS=$CONTENTS/Frameworks
 
 
-PYTHONPATH=/opt/local/lib/python2.5/site-packages/
-PYTHONPATH=/opt/local//Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/:$PYTHONPATH
-PYTHONPATH=$HOME/stree/sfa/trunk:$PYTHONPATH
+DYLD_FRAMEWORK_PATH=$FRAMEWORKS
+DYLD_LIBRARY_PATH=$RESOURCES
+PYTHONPATH=$RESOURCES:$FRAMEWORKS:$PYTHONPATH
+PATH=$RESOURCES:$RESOURCES/sfa/client/:$PATH
+
+export DYLD_FRAMEWORK_PATH
+export DYLD_LIBRARY_PATH
 export PYTHONPATH
 export PYTHONPATH
+export PATH
+echo Using PYTHONPATH=$PYTHONPATH
+echo Using PATH=$PATH
 
 
-exec python sface.py "$@"
+exec python $(dirname $0)/sface-run
\ No newline at end of file