From df8fdbd4fa50452682919f6245c76beb51cc16cc Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sun, 4 Jul 2021 16:35:52 +0200 Subject: [PATCH] Moved appending pacakge to path from setup.py to __init__ file. --- delugeClient/__init__.py | 6 ++++-- setup.py | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/delugeClient/__init__.py b/delugeClient/__init__.py index 07bd55a..796f680 100644 --- a/delugeClient/__init__.py +++ b/delugeClient/__init__.py @@ -1,11 +1,13 @@ +import os from sys import path -from os.path import dirname -path.append(dirname(__file__)) +path.append(os.path.dirname(__file__)) __version__=0.1 import logging +from delugeUtils import BASE_DIR + logger = logging.getLogger('deluge_cli') logger.setLevel(logging.DEBUG) diff --git a/setup.py b/setup.py index 2f53263..145d73d 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,5 @@ from setuptools import setup, find_packages -from sys import path -from os.path import dirname -path.append(dirname(__file__)) import delugeClient with open("README.md", "r", encoding="utf-8") as fh: