Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write config to tempfile and rename to avoid race. #4

Merged
merged 1 commit into from Oct 29, 2015

Conversation

n8pease
Copy link

@n8pease n8pease commented Oct 29, 2015

Conflicts:
python/lsst/pex/config/config.py

This is essentially a cherry-pick of HSC-1106's:
HyperSuprime-Cam@6e44b4e

@@ -569,8 +571,10 @@ def save(self, filename, root="config"):
@param[in] filename name of file to which to write the config
@param[in] root name to use for the root config variable; the same value must be used when loading
"""
with open(filename, 'w') as outfile:
d = os.path.split(filename)[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be os.path.dirname?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed.

Conflicts:
	python/lsst/pex/config/config.py

This is essentially a cherry-pick of HSC-1106's:
HyperSuprime-Cam@6e44b4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants