Skip to content

Commit 039a1da

Browse files
committed
fix(updater): make lint happy
Signed-off-by: Me0wo <152751263+Sn0wo2@users.noreply.github.com>
1 parent c67c086 commit 039a1da

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Updater/main.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1+
import json
12
import os
23
import sys
3-
4-
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
5-
if BASE_DIR not in sys.path:
6-
sys.path.insert(0, BASE_DIR)
7-
8-
import json
94
import time
105
from pathlib import Path
116

@@ -20,6 +15,10 @@
2015
from updater.runner.process import find_processes_by_path, try_terminate
2116
from updater.tag.reader import read
2217

18+
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
19+
if BASE_DIR not in sys.path:
20+
sys.path.insert(0, BASE_DIR)
21+
2322
OWNER = "Sn0wo2"
2423
REPO = "QuickNote"
2524
INTERVAL = 5.0

0 commit comments

Comments
 (0)