From 81795ed9da33ca0bbf1a4dfdc3536fbafd33b389 Mon Sep 17 00:00:00 2001 From: guofei9987 Date: Wed, 20 Nov 2024 19:40:27 +0800 Subject: [PATCH] bug fixed --- examples/example.py | 3 +++ examples/example_old.py | 3 +++ requirements.txt | 2 +- setup.py | 3 +-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/example.py b/examples/example.py index c8e926e..9cf4a7f 100644 --- a/examples/example.py +++ b/examples/example.py @@ -1,4 +1,7 @@ from text_blind_watermark import TextBlindWatermark +import os + +os.chdir(os.path.dirname(__file__)) password = b"p@ssw0rd" watermark = b"This is a watermark" diff --git a/examples/example_old.py b/examples/example_old.py index f3b93c4..b205502 100644 --- a/examples/example_old.py +++ b/examples/example_old.py @@ -1,4 +1,7 @@ from text_blind_watermark import TextBlindWatermarkDeprecated +import os + +os.chdir(os.path.dirname(__file__)) password = "p@ssw0rd" watermark = "This is a watermark" diff --git a/requirements.txt b/requirements.txt index 7eeebd3..a26de6a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ setuptools -crypt_tool==0.1.3 \ No newline at end of file +crypt_tool>=0.1.3 \ No newline at end of file diff --git a/setup.py b/setup.py index abede9e..86133e8 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ import os -import text_blind_watermark this_directory = os.path.abspath(os.path.dirname(__file__)) @@ -20,7 +19,7 @@ def read_requirements(filename): setup( name='text_blind_watermark', - version=text_blind_watermark.__version__, + version="0.4.2", python_requires='>=3.5', description='Text Blind Watermark in Python', long_description=read_file('README.md'),