WindmillWWindmill
Powered by
chrschC
Windmill•15mo ago•
2 replies
chrsch

import workplace script in inline skript

I have a script in my workspace:

u/chrsch/useful


def foo():
print('Common logic!')

def main():
foo()

I want to call the function foo() or also main() from my inline Skript:

inline script

from .useful import foo

def main(persdata: str):
foo()
return persdata

I get the error: TypeError: 'module' object is not callable

What do I wrong?
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Inline script triggered on App launch
SpiriteliumSSpiritelium / help
2y ago
Import error script not found
EnterEEnter / help
3y ago
Unable to pass the global results object to inline script
TreyTTrey / help
5mo ago
script in draft mode
ZainalZZainal / help
7d ago