...
|
...
|
@@ -1939,7 +1939,9 @@ def main():
|
1939
|
1939
|
#optparser.disable_interspersed_args()
|
1940
|
1940
|
|
1941
|
1941
|
config_file = None
|
1942
|
|
- if os.getenv("HOME"):
|
|
1942
|
+ if os.getenv("S3CMD_CONFIG"):
|
|
1943
|
+ config_file = os.getenv("S3CMD_CONFIG")
|
|
1944
|
+ elif os.getenv("HOME"):
|
1943
|
1945
|
config_file = os.path.join(os.getenv("HOME"), ".s3cfg")
|
1944
|
1946
|
elif os.name == "nt" and os.getenv("USERPROFILE"):
|
1945
|
1947
|
config_file = os.path.join(os.getenv("USERPROFILE").decode('mbcs'), "Application Data", "s3cmd.ini")
|