chore: fix python lint warnings (#14638)
* chore: fix lint warnings * chore: another try at python import errors Looks like the problem is that dbus_mock.py is running as a script but living in the `lib/` directory where it's part of a module. Moving it up into the `script/` directory seems to solve the issue.
This commit is contained in:
parent
6d01952e66
commit
a45ded5508
15 changed files with 111 additions and 74 deletions
|
@ -3,7 +3,7 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from util import scoped_cwd
|
||||
from lib.util import scoped_cwd
|
||||
|
||||
|
||||
class GNProject:
|
||||
|
@ -18,7 +18,8 @@ class GNProject:
|
|||
|
||||
def run(self, command_name, command_args):
|
||||
with scoped_cwd(self.out_dir):
|
||||
complete_args = [self._get_executable_name(), command_name, '.'] + command_args
|
||||
complete_args = [self._get_executable_name(), command_name, '.'] + \
|
||||
command_args
|
||||
return subprocess.check_output(complete_args)
|
||||
|
||||
def args(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue