mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
Get rid of imp, started giving deprecation warning every time in Python 3.7 in Ubuntu 19.04.
Please python stop torturing me with refactors. Make ./run -u blow up if executable not found, otherwise I go crazy. Get ./test-gdb back to life after the ./run relative path refactor, forgot to test this.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import imp
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
import common
|
||||
build_linux = imp.load_source('build-linux', os.path.join(kwargs['root_dir'], 'build_linux'))
|
||||
run = imp.load_source('run', os.path.join(kwargs['root_dir'], 'run'))
|
||||
|
||||
build_linux = common.import_path_relative_root('build-linux')
|
||||
run = common.import_path_relative_root('run')
|
||||
|
||||
parser = self.get_argparse(
|
||||
argparse_args={
|
||||
|
||||
Reference in New Issue
Block a user