[27281] in Source-Commits
scripts commit: Fallback to the empty string if $HOME is unset
daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Thu Sep 19 10:52:21 2013
Date: Thu, 19 Sep 2013 10:52:13 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201309191452.r8JEqDt7019731@drugstore.mit.edu>
To: source-commits@MIT.EDU
https://github.com/mit-athena/scripts/commit/cca91dd2aace1acb6c16f98febbac8ca4fec5a09
commit cca91dd2aace1acb6c16f98febbac8ca4fec5a09
Author: Jonathan Reed <jdreed@mit.edu>
Date: Fri Sep 6 15:15:00 2013 -0400
Fallback to the empty string if $HOME is unset
If $HOME is unset, fall back to the empty string, which
basically means looking in the root of the filesystem.
This can be considered a feature
trac-remote.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/trac-remote.py b/trac-remote.py
index 9c8c8d9..c89f3d3 100755
--- a/trac-remote.py
+++ b/trac-remote.py
@@ -6,7 +6,7 @@ import logging
from optparse import OptionParser
LOGGER_NAME="trac-remote"
-DEFAULT_CREDENTIALS=os.getenv('HOME', '~') + "/.trac-credentials"
+DEFAULT_CREDENTIALS=os.getenv('HOME', '') + "/.trac-credentials"
DEFAULT_SERVER="athena10.mit.edu"
DEFAULT_RPC_PATH="/trac/login/rpc"