examples/module-loading/09_relative_import.cat
# check: no-check
# Relative imports -- resolved from this file's location, not CWD
# Run with: catnip docs/examples/module-loading/09_relative_import.cat
# Load a Python module in the same directory (extension inferred)
host = import("./03_host_module_example")
x = host.add(10, 5)
# ../ works too -- go up one level then back down
host2 = import("../module-loading/03_host_module_example")
y = host2.multiply(3, 4)
x + y