1. michilu
  2. python-amazon-product-api

Commits

Sebastian Rahlf  committed 39b9ace

Bugfix: *user* path is expanded for config files.

  • Participants
  • Parent commits 5265eff
  • Branches default

Comments (0)

Files changed (1)

File amazonproduct/utils.py

View file
     .. _#: http://code.google.com/p/boto/wiki/BotoConfig
     """
     config = SafeConfigParser()
-    config.read([os.path.expandvars(path) for path in BOTO_FILES])
+    config.read([os.path.expanduser(path) for path in BOTO_FILES])
 
     mapper = {
         'access_key': 'aws_access_key_id',
 
     """
     config = SafeConfigParser()
-    config.read([os.path.expandvars(path) for path in CONFIG_FILES])
+    config.read([os.path.expanduser(path) for path in CONFIG_FILES])
 
     if not config.has_section('Credentials'):
         return {}