Skip to content

Commit 3f408c1

Browse files
committed
Add win32 path for config
1 parent d7b1951 commit 3f408c1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gcloud/_helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,11 @@ 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',
194+
'config_default')
192195
config = configparser.RawConfigParser()
193-
config.read(full_config_path)
196+
config.read([full_config_path, win32_config_path])
194197

195198
if config.has_section('core'):
196199
return config.get('core', 'project')

0 commit comments

Comments
 (0)