From 00c8a5897b424be1ad4a705d1e53b3fbc7f70dea Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 25 Jul 2008 12:07:48 +0000 Subject: Keep going even if the disk is full. Patch by cscott. Fix #7587 --- (limited to 'src/sugar/env.py') diff --git a/src/sugar/env.py b/src/sugar/env.py index 16327fc..b9c259f 100644 --- a/src/sugar/env.py +++ b/src/sugar/env.py @@ -43,7 +43,7 @@ def get_profile_path(path=None): return base def get_logs_path(path=None): - base = get_profile_path('logs') + base = os.environ.get('SUGAR_LOGS_DIR', get_profile_path('logs')) if path != None: return os.path.join(base, path) else: -- cgit v0.9.1