Skip to content

Commit 63444c2

Browse files
committed
Add win32 path for config
1 parent d7b1951 commit 63444c2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

gcloud/_helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,10 @@ def _default_service_project_id():
189189
:returns: Project-ID from default configuration file else ``None``
190190
"""
191191
full_config_path = os.path.expanduser(DEFAULT_CONFIGURATION_PATH)
192+
win32_config_path = os.path.join(os.getenv('APPDATA', ''),
193+
'gcloud\configurations\config_default')
192194
config = configparser.RawConfigParser()
193-
config.read(full_config_path)
195+
config.read([full_config_path, win32_config_path])
194196

195197
if config.has_section('core'):
196198
return config.get('core', 'project')

0 commit comments

Comments
 (0)