Skip to content

Commit

Permalink
fix:ModuleNotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
luyanci committed Oct 1, 2024
1 parent 99a15cd commit 2b78295
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import os
import sys
import json
import datetime
import threading
import importlib.util

from loguru import logger
from bilibili_api import sync

# 添加当前目录到python路径(避免额外写的模块出现ModuleNotFoundError/ImportError)
sys.path.append(os.getcwd())
#print(sys.path)
from libs import live,user,config,ignore
from libs import inital_command,schedule

Expand Down

0 comments on commit 2b78295

Please sign in to comment.