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