importing python in an app #398
ely-peddler
started this conversation in
General
Replies: 2 comments 6 replies
-
This should work! Are you using |
Beta Was this translation helpful? Give feedback.
1 reply
-
I just made a test case for this, seem to work for me. Folder
import a
print(a.a())
def a():
return "hello" and then >>> run('test')
hello What is different about what you're trying? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to split my app into multiple py files but I can't find a way to import the extra code
I have a set up something like this
I've tried multiple import statements in my_app.py to try to include the code in util.py but they all fail for various reasons including AttributeError: 'module' object has no attribute '...' and ImportError: can't perform relative import
Is it possible to split a tulip app into multiple py files? If so how?
Beta Was this translation helpful? Give feedback.
All reactions