[Rigo] do not override DATA_DIR and ICON_PATH with relative paths, fix bug 3370

This commit is contained in:
Fabio Erculiani
2012-06-04 10:26:14 +02:00
parent 66a4783d20
commit 773797c76f
2 changed files with 2 additions and 8 deletions
+2
View File
@@ -1,4 +1,6 @@
#!/bin/sh
export RIGO_DATA_DIR="./data"
export RIGO_ICON_PATH="./data/icons"
# GDB?
# exec gdb --args python rigo_app.py # --dumper --debug
exec python rigo_app.py --dumper --debug
-8
View File
@@ -22,15 +22,7 @@ import os
import tempfile
ICON_PATH = os.getenv("RIGO_ICON_PATH", "/usr/share/rigo/icons")
_local_icon_path = "./data/icons"
if os.path.isdir(_local_icon_path):
ICON_PATH = _local_icon_path
DATA_DIR = os.getenv("RIGO_DATA_DIR", "/usr/share/rigo")
_local_data_dir = "./data"
if os.path.isdir(_local_data_dir):
DATA_DIR = _local_data_dir
_home_dir = os.getenv("HOME")
if _home_dir is None: