mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11: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:
@@ -11,10 +11,11 @@ made to this file.
|
||||
import argparse
|
||||
import bisect
|
||||
import collections
|
||||
import imp
|
||||
import os
|
||||
import sys
|
||||
|
||||
import common
|
||||
|
||||
class _Argument:
|
||||
def __init__(
|
||||
self,
|
||||
@@ -188,7 +189,7 @@ class CliFunction:
|
||||
if config_file is not None:
|
||||
if os.path.exists(config_file):
|
||||
config_configs = {}
|
||||
config = imp.load_source('config', config_file)
|
||||
config = common.import_path(config_file)
|
||||
if self.extra_config_params is None:
|
||||
config.set_args(config_configs)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user