[nanny] Add relative multiplatform paths to QuarterBack
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny] Add relative multiplatform paths to QuarterBack
- Date: Sun, 23 Jan 2011 18:01:05 +0000 (UTC)
commit e121c66330187528cb8be769118bf11672f6718a
Author: Roberto Majadas <roberto majadas openshine com>
Date: Wed Sep 15 13:00:00 2010 +0200
Add relative multiplatform paths to QuarterBack
daemon/src/QuarterBack.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/daemon/src/QuarterBack.py b/daemon/src/QuarterBack.py
index ab78819..5115184 100644
--- a/daemon/src/QuarterBack.py
+++ b/daemon/src/QuarterBack.py
@@ -53,7 +53,11 @@ def GetInHM(m):
minutes = seconds / 60
return "%02d:%02d" % (hours, minutes)
-BLOCK_DB="/var/lib/nanny/nanny-block.db"
+
+if os.name == "posix" :
+ BLOCK_DB = "/var/lib/nanny/nanny-block.db"
+elif os.name == "nt" :
+ BLOCK_DB = "C:\\WINDOWS\\nanny_data\\nanny-block.db"
WEEKDAYS = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]