Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
python_modules_and_packages [2017/10/19 18:57] – mgupton | python_modules_and_packages [2017/10/25 12:33] (current) – [Example] mgupton | ||
---|---|---|---|
Line 12: | Line 12: | ||
hello() | hello() | ||
</ | </ | ||
+ | |||
+ | Directory named //foo// contains empty file named // | ||
+ | |||
+ | General scheme | ||
+ | < | ||
+ | from < | ||
+ | </ | ||
+ | |||
+ | The // | ||
+ | |||
+ | < | ||
+ | from < | ||
+ | </ | ||
+ | |||
+ | Which would allow the module to be imported into other modules with the following import statement that imports directly from the package and not the module. | ||
+ | |||
+ | < | ||
+ | from < | ||
+ | </ | ||
+ |