Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/sugar-launch
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sugar-launch')
-rw-r--r--bin/sugar-launch3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/sugar-launch b/bin/sugar-launch
index a0a5387..7765ff1 100644
--- a/bin/sugar-launch
+++ b/bin/sugar-launch
@@ -20,7 +20,6 @@ import os
import sys
from optparse import OptionParser
-from sugar import env
from sugar.activity import activityfactory
from sugar.activity.registry import get_registry
@@ -46,7 +45,7 @@ def _which(exec_file):
if 'PATH' in os.environ:
envpath = os.environ['PATH']
else:
- envpath = defpath
+ return None
for path in envpath.split(os.pathsep):
fullname = os.path.join(path, exec_file)