What I’m trying to do:
See the attached image. I have module called Globals as per @meredydd example Anvil | Login
I can access Globals from the Main Form at the top of the package (or directory) but not from a Form at the same level in the hierarchy. So In Main Form import Globals works. From the Main subform import Globals fails to find the module.
What I’ve tried and what’s not working:
I have tried import …Globals which worked in previous themes. I have put the Globals module at the same level as Main –
Code Sample:
# this is a formatted code snippet.
# paste your code between ```
from anvil.tables import app_tables
import Globals as sitedata
…
class Main(MainTemplate):
Works
…
from anvil.tables import app_tables
import Globals as sitedata
…
class Site_Select_Dropdown(Site_Select_DropdownTemplate):
Fails.
Thank you –
Clone link:
share a copy of your app