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
|
@ -1,12 +1,14 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import argparse
|
||||
import atexit
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from lib.config import enable_verbose_mode
|
||||
import lib.dbus_mock
|
||||
from lib.util import electron_gyp, execute_stdout, rm_rf
|
||||
|
||||
|
||||
|
@ -17,8 +19,6 @@ if sys.platform == 'linux2':
|
|||
# while also setting DBUS_SYSTEM_BUS_ADDRESS environment variable, which
|
||||
# will be picked up by electron.
|
||||
try:
|
||||
import lib.dbus_mock
|
||||
import atexit
|
||||
lib.dbus_mock.start()
|
||||
atexit.register(lib.dbus_mock.stop)
|
||||
except ImportError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue