Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support executable event file#18

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mgwilliams wants to merge1 commit intoHDE:master
base:master
Choose a base branch
Loading
frommgwilliams:executable-event

Conversation

mgwilliams
Copy link

Instead of an event.json file, this allows any executable to be passed topython-lambda-local as the event path, which will be executed and its stdout used as the event.

@yxd-hde
Copy link
Contributor

subprocess module is not compatible with python27. Is it possible to use a compatible way for both python2 and python3?

@clbarnes
Copy link

clbarnes commentedJan 17, 2025
edited
Loading

IMO the better way to do this would be to just support stdin if theevent argument isn't given. Then you can use your regular shell utilities to pipe the event into the python-lambda-local call.

Fortunately, in the time since this PR was opened, python 2.7 was deprecated (so nobody should be using it anyway). Anyway, python 2.7 does supportsubprocess, you just have to usecall instead ofrun.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@mgwilliams@yxd-hde@clbarnes@freedomofkeima

[8]ページ先頭

©2009-2025 Movatter.jp