mirror of
https://github.com/KevinMidboe/delugeClient.git
synced 2025-10-29 12:00:13 +00:00
Renamed file delugeUtils -> utils
This commit is contained in:
@@ -6,7 +6,7 @@ path.append(os.path.dirname(__file__))
|
|||||||
path.append(dirname(__file__))
|
path.append(dirname(__file__))
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from delugeUtils import BASE_DIR
|
from utils import BASE_DIR, ColorizeFilter
|
||||||
|
|
||||||
logger = logging.getLogger('deluge_cli')
|
logger = logging.getLogger('deluge_cli')
|
||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import logging.config
|
|||||||
|
|
||||||
from deluge_client import DelugeRPCClient
|
from deluge_client import DelugeRPCClient
|
||||||
from sshtunnel import SSHTunnelForwarder
|
from sshtunnel import SSHTunnelForwarder
|
||||||
from delugeUtils import getConfig, BASE_DIR
|
from utils import getConfig, BASE_DIR
|
||||||
|
|
||||||
from torrent import Torrent
|
from torrent import Torrent
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ def getConfig():
|
|||||||
for key, value in requiredParameters:
|
for key, value in requiredParameters:
|
||||||
if value == '':
|
if value == '':
|
||||||
logger.error('Missing value for variable: "{}" in config: \
|
logger.error('Missing value for variable: "{}" in config: \
|
||||||
"$HOME/.config/delugeClient/config.ini".'.format(key))
|
"{}.'.format(key, user_config_dir))
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
return config
|
return config
|
||||||
Reference in New Issue
Block a user