Skip to content

Commit 999d8ad

Browse files
author
Tinus Green
committed
Resolve #3 and close #5 with new import method
1 parent ff5b74d commit 999d8ad

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

captcha22/__main__.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@
44
import site
55
import sys
66

7-
sites = site.getsitepackages()
7+
try:
8+
sites = site.getsitepackages()
89

9-
for site_path in sites:
10-
sys.path.append(site_path + "/captcha22")
10+
for site_path in sites:
11+
sys.path.append(site_path + "/captcha22")
12+
except:
13+
pass
14+
15+
import captcha22 as _;
16+
17+
for path in _.__path__:
18+
sys.path.append(path)
1119

1220
from lib.core.client import (api_basic, api_full, captcha_labeller,
1321
captcha_typer, client_api, cracker,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup
33

44
REQUIRED_PACKAGES = ['pytest','aocr', 'numpy', 'opencv-python', 'Flask', 'flask_restful', 'flask_httpauth', 'pytest-shutil', 'pillow', 'pyppeteer']
5-
VERSION = 'v1.0.1'
5+
VERSION = 'v1.0.2'
66

77
setup(
88
name='captcha22',

0 commit comments

Comments
 (0)