summaryrefslogtreecommitdiff
path: root/cerbero-uninstalled
diff options
context:
space:
mode:
Diffstat (limited to 'cerbero-uninstalled')
-rwxr-xr-xcerbero-uninstalled16
1 files changed, 7 insertions, 9 deletions
diff --git a/cerbero-uninstalled b/cerbero-uninstalled
index 37db3fea..6c74173d 100755
--- a/cerbero-uninstalled
+++ b/cerbero-uninstalled
@@ -1,11 +1,9 @@
-#!/bin/sh
-export PYTHONPATH=$PYTHONPATH:`pwd`
-export CERBERO_UNINSTALLED=1
+#!/usr/bin/env python
+import sys
+import os
-if [ -z $PYTHON ]
-then
- PYTHON=python
-fi
-
-$PYTHON bin/cerbero "$@"
+os.environ['CERBERO_UNINSTALLED']='1'
+sys.path.insert(0, os.path.dirname(__file__))
+from cerbero.main import main
+main()