summaryrefslogtreecommitdiff
path: root/cerbero-uninstalled
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-20 03:19:35 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-20 12:22:38 +0200
commit1731f2e3bac792d54b937edafca81fb8809538f2 (patch)
treee17483ecbc7baa1cdcdfa57432169d6220c7ff93 /cerbero-uninstalled
parent9230766463db2ea08b010502a6a03c560c03d34d (diff)
cerbero-uninstalled: make the uninstalled script work again
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()