We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7b1951 commit 3f408c1Copy full SHA for 3f408c1
1 file changed
gcloud/_helpers.py
@@ -189,8 +189,11 @@ def _default_service_project_id():
189
:returns: Project-ID from default configuration file else ``None``
190
"""
191
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')
195
config = configparser.RawConfigParser()
- config.read(full_config_path)
196
+ config.read([full_config_path, win32_config_path])
197
198
if config.has_section('core'):
199
return config.get('core', 'project')
0 commit comments