From 467615b355ebfaeb2e7838e405716d69606efd60 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sat, 3 Jul 2021 18:33:26 +0200 Subject: [PATCH] Use __init__ to append this package's dir to path. --- torrentSearch/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/torrentSearch/__init__.py b/torrentSearch/__init__.py index ddac259..a084a4d 100644 --- a/torrentSearch/__init__.py +++ b/torrentSearch/__init__.py @@ -1,5 +1,10 @@ +#!/usr/bin/env python3.6 # -*- encoding: utf-8 -*- """Python Torrent Searcher/Scraper.""" -__version__ = 'v0.0.2' +from sys import path +from os.path import dirname +path.append(dirname(__file__)) + +__version__ = '0.1'