Debian Codegraph @

tests/roots/test-ext-apidoc-toc/mypackage/main.py

raw
1 from pathlib import Path
2
3 import mod_resource
4 import mod_something
5
6 if __name__ == '__main__':
7 print(f'Hello, world! -> something returns: {mod_something.something()}')
8
9 res_path = Path(mod_resource.__file__).parent / 'resource.txt'
10 text = res_path.read_text(encoding='utf-8')
11 print(f'From mod_resource:resource.txt -> {text}')