Browse code

* s3cmd: Don't fail when neither $HOME nor %USERPROFILE% is set. (fixes #2483388)

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@325 830e0280-6d2a-0410-9c65-932aecc39d9d

Michal Ludvig authored on 2009/01/03 17:37:08
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+2009-01-03  Michal Ludvig  <michal@logix.cz>
2
+
3
+	* s3cmd: Don't fail when neither $HOME nor %USERPROFILE% is set.
4
+	  (fixes #2483388)
5
+
1 6
 2009-01-01  W. Tell  <w_tell -at- sourceforge>
2 7
 
3 8
 	* S3/S3.py, S3/Utils.py: Use 'hashlib' instead of md5 and sha 
... ...
@@ -1118,6 +1118,7 @@ def main():
1118 1118
 	optparser = OptionParser(option_class=OptionMimeType, formatter=MyHelpFormatter())
1119 1119
 	#optparser.disable_interspersed_args()
1120 1120
 
1121
+	config_file = None
1121 1122
 	if os.getenv("HOME"):
1122 1123
 		config_file = os.path.join(os.getenv("HOME"), ".s3cfg")
1123 1124
 	elif os.name == "nt" and os.getenv("USERPROFILE"):