Skip to content

Resolve issues with GAE and os.path.expanduser() - #1924

Merged
daspecster merged 2 commits into
googleapis:masterfrom
daspecster:fix-gae-default-project-id
Jun 28, 2016
Merged

Resolve issues with GAE and os.path.expanduser()#1924
daspecster merged 2 commits into
googleapis:masterfrom
daspecster:fix-gae-default-project-id

Conversation

@daspecster

Copy link
Copy Markdown
Contributor

os.path.expanduser imports the pwd module which is not supported by GAE.

This should resolve#1922.

@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 28, 2016
Comment threadgcloud/test__helpers.py Outdated
import pwd
del pwd
sys.modules['pwd'] = None # Blocks pwd from being imported.
project_id = self.callFUT('test-project-id')

This comment was marked as spam.

@daspecster

Copy link
Copy Markdown
ContributorAuthor

@tseaver, I cleaned up some redundant code as well.

Comment threadgcloud/_helpers.py Outdated
# Workaround for GAE not supporting pwd which is used by expanduser.
try:
full_config_path = os.path.expanduser(DEFAULT_CONFIGURATION_PATH)
search_paths.append(full_config_path)

This comment was marked as spam.

@daspecster
daspecsterforce-pushed the fix-gae-default-project-id branch from b806b92 to b1d56a5CompareJune 28, 2016 15:37
@theacodes

Copy link
Copy Markdown
Contributor

FWIW, I'm filing a bug to get pwd enabled on GAE.

@tseaver

Copy link
Copy Markdown
Contributor

LGTM

@daspecster
daspecster merged commit ad5936c into googleapis:masterJun 28, 2016
@daspecster
daspecster deleted the fix-gae-default-project-id branch June 28, 2016 20:19
@tseavertseaver mentioned this pull request Jun 29, 2016
parthea pushed a commit that referenced this pull request Apr 1, 2026
* fix: Series.str.isdigit in unicode subscripts
* fix test
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Storage on Standard App Engine causing import error

4 participants

@daspecster@theacodes@tseaver@googlebot