Skip to content

Allow file-like objects to be passed as attachments #11

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jxcl
Copy link
Contributor

@jxcl jxcl commented Dec 10, 2015

No description provided.

@rockymeza
Copy link

Oh yes definitely, this is what I needed before I could even start to use ogmios.

@acatton acatton added this to the 1.0 milestone Dec 14, 2015
data = attachment['data'].read()
else:
fpath = attachment['path']
full_path = os.path.join(fpath)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure to understand what you're trying to do here? os.path.join(x) is a no-op as far as I know (I could be wrong). Did you mean os.path.abspath(x)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's actually from you. I thought so as well but figured that you knew something I didn't. See 2ea20c8.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep. That's a mistake from my side. Can you do another commit "fix antoine's shit" where you change this to os.path.abspath()? Thanks.

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.

3 participants