mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 04:54:27 +01:00
python relative import
This commit is contained in:
7
rootfs_overlay/lkmc/python/relative_import/myfile_user.py
Executable file
7
rootfs_overlay/lkmc/python/relative_import/myfile_user.py
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import myfile
|
||||
import mydir.myfile_user
|
||||
|
||||
assert myfile.a == 1
|
||||
assert mydir.myfile_user.b == 2
|
||||
Reference in New Issue
Block a user