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

Solid work, but how do I trigger a custom python script (w/ imports?) #21

Open
OluAgunloye opened this issue Mar 21, 2020 · 7 comments
Open

Comments

@OluAgunloye
Copy link

Thanks for this Daniel, will build some really cool stuff on it!
In order to do that though, see subject: can we call our own custom scripts that may need their own Python package imports?

@OluAgunloye
Copy link
Author

@danielgerlag
Thought I'd bump this, for a future reply. If this is not on the roadmap, what obstacles stop this from being a reality? Would like work on a branch that does this as a PR.

@danielgerlag
Copy link
Owner

You can currently import any system package. Are you looking to import 3rd party modules?

@OluAgunloye
Copy link
Author

OluAgunloye commented Sep 24, 2020

You can currently import any system package. Are you looking to import 3rd party modules?

@danielgerlag Yes. Also, where can I find some documentation on how to do this, or how to import the system packages?

@danielgerlag
Copy link
Owner

I tried it like this

import datetime
result = str(datetime.datetime.now())

@OluAgunloye
Copy link
Author

I tried it like this

import datetime
result = str(datetime.datetime.now())

@danielgerlag
You did this as a custom script then? You created your own step? Or how else would this be done?

@OluAgunloye
Copy link
Author

@danielgerlag
Hey Daniel,

Still stuck on this part actually. The dateTime/Timespan still giving lots of issues.

@OluAgunloye
Copy link
Author

OluAgunloye commented Oct 26, 2020

I tried it like this

import datetime
result = str(datetime.datetime.now())

@danielgerlag
Hey Daniel, when you have time could use some more elaboration on this. Tried just using the built in System.Timespan() method to set an interval in any of your workflow steps that accepted an interval. The IronPython interpretation got in the way. I genuinely wish to know how you suggest we set the interval fields in these workflows, as accessing a datetime object through JSON is not flying!

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

No branches or pull requests

2 participants