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?
3 replies