File tree 8 files changed +12
-9
lines changed
8 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 62
62
pip --cache-dir=.pip install pylint
63
63
pip --cache-dir=.pip install -r requirements.txt
64
64
- name : Run Pylint
65
- run : pylint startup tests f3.py kernel_remover.py maintenance.py modem.py utils .py 2>&1 | tee pylint.txt
65
+ run : pylint startup tests f3.py kernel_remover.py maintenance.py modem.py misc_misc_utils .py 2>&1 | tee pylint.txt
66
66
working-directory : ${{ github.workspace }}
67
67
- name : Upload results
68
68
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change 18
18
REPO_DIR = os .path .dirname (SCRIPT_DIR )
19
19
LOG_DIR = os .path .join (REPO_DIR , "logs" )
20
20
sys .path .append (REPO_DIR )
21
- import utils
21
+ import misc_utils as utils
22
22
23
23
logger = logging .getLogger (__name__ )
24
24
logging .basicConfig (
Original file line number Diff line number Diff line change 12
12
import time
13
13
import typing as tp
14
14
15
- import utils
16
- from utils import print_info , run
15
+ import misc_utils as utils
16
+ from misc_utils import print_info , run
17
17
18
18
log_path = os .path .join (os .path .dirname (os .path .abspath (__file__ )), "logs" )
19
19
os .makedirs (log_path , exist_ok = True )
Original file line number Diff line number Diff line change 1
1
"""
2
2
Utility methods for scripts
3
+
4
+ This file cannot be named utils.py due to naming conflicts with installed packages.
3
5
"""
4
6
5
7
import getpass
Original file line number Diff line number Diff line change 9
9
import os .path
10
10
import time
11
11
12
- import utils
12
+ import misc_utils as utils
13
13
14
14
logger = logging .getLogger (__name__ )
15
15
log_path = os .path .join (os .path .dirname (os .path .abspath (__file__ )), "logs" )
Original file line number Diff line number Diff line change 1
1
import unittest
2
2
3
- import utils
3
+ import misc_utils as utils
4
4
5
5
6
6
class UtilsTestCase (unittest .TestCase ):
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ TABLET_USER="${USER}"
11
11
12
12
sudo apt-get install python3-xlib
13
13
echo " Installing the launcher."
14
- sudo cp . /99-wacom-tablet* .rules " /etc/udev/rules.d/"
15
- sudo cp " . /wacom.sh" " /usr/local/bin/"
14
+ sudo cp " ${SCRIPT_DIR} " /99-wacom-tablet* .rules " /etc/udev/rules.d/"
15
+ sudo cp " ${SCRIPT_DIR} /wacom.sh" " /usr/local/bin/"
16
16
sudo chown root:root /etc/udev/rules.d/99-wacom-tablet* .rules " /usr/local/bin/wacom.sh"
17
17
sudo chmod 0644 /etc/udev/rules.d/99-wacom-tablet* .rules
18
18
sudo chmod 0755 " /usr/local/bin/wacom.sh"
@@ -21,4 +21,5 @@ sudo chmod 0755 "/usr/local/bin/wacom.sh"
21
21
sudo sed -i " s+USERNAME+${TABLET_USER} +g; s+SCRIPT_DIR+${SCRIPT_DIR} +g" " /usr/local/bin/wacom.sh"
22
22
23
23
sudo udevadm control --reload-rules
24
+ /usr/local/bin/wacom.sh
24
25
echo " Launcher installed."
Original file line number Diff line number Diff line change 31
31
REPO_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
32
32
sys .path .append (REPO_DIR )
33
33
34
- import utils
34
+ import misc_utils as utils
35
35
36
36
XSETWACOM : str = "/usr/bin/xsetwacom"
37
37
You can’t perform that action at this time.
0 commit comments