From d23a301826dcb6daf7fc064b20312228fd951a0e Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Thu, 25 Jul 2024 05:39:01 -0700 Subject: [PATCH] Use #!/usr/bin/env to support virtualenv (#2518) --- changedetection.py | 2 +- changedetectionio/__init__.py | 2 +- changedetectionio/blueprint/browser_steps/browser_steps.py | 2 +- changedetectionio/flask_app.py | 2 +- changedetectionio/tests/conftest.py | 2 +- .../tests/custom_browser_url/test_custom_browser_url.py | 2 +- changedetectionio/tests/fetchers/conftest.py | 2 +- changedetectionio/tests/fetchers/test_content.py | 2 +- changedetectionio/tests/proxy_list/conftest.py | 2 +- changedetectionio/tests/proxy_list/test_multiple_proxy.py | 2 +- changedetectionio/tests/proxy_list/test_noproxy.py | 2 +- changedetectionio/tests/proxy_list/test_proxy.py | 2 +- changedetectionio/tests/proxy_list/test_select_custom_proxy.py | 2 +- changedetectionio/tests/proxy_socks5/test_socks5_proxy.py | 2 +- .../tests/proxy_socks5/test_socks5_proxy_sources.py | 2 +- changedetectionio/tests/restock/conftest.py | 2 +- changedetectionio/tests/restock/test_restock.py | 2 +- changedetectionio/tests/smtp/smtp-test-server.py | 2 +- changedetectionio/tests/test_add_replace_remove_filter.py | 2 +- changedetectionio/tests/test_api.py | 2 +- changedetectionio/tests/test_auth.py | 2 +- changedetectionio/tests/test_automatic_follow_ldjson_price.py | 2 +- changedetectionio/tests/test_backend.py | 2 +- changedetectionio/tests/test_backup.py | 2 +- changedetectionio/tests/test_block_while_text_present.py | 2 +- changedetectionio/tests/test_clone.py | 2 +- changedetectionio/tests/test_css_selector.py | 2 +- changedetectionio/tests/test_element_removal.py | 2 +- changedetectionio/tests/test_encoding.py | 2 +- changedetectionio/tests/test_errorhandling.py | 2 +- changedetectionio/tests/test_extract_csv.py | 2 +- changedetectionio/tests/test_extract_regex.py | 2 +- changedetectionio/tests/test_filter_exist_changes.py | 2 +- changedetectionio/tests/test_group.py | 2 +- changedetectionio/tests/test_history_consistency.py | 2 +- changedetectionio/tests/test_html_to_text.py | 2 +- changedetectionio/tests/test_ignore_regex_text.py | 2 +- changedetectionio/tests/test_ignore_text.py | 2 +- changedetectionio/tests/test_ignorehighlighter.py | 2 +- changedetectionio/tests/test_ignorehyperlinks.py | 2 +- changedetectionio/tests/test_ignorestatuscode.py | 2 +- changedetectionio/tests/test_ignorewhitespace.py | 2 +- changedetectionio/tests/test_import.py | 2 +- changedetectionio/tests/test_jinja2.py | 2 +- changedetectionio/tests/test_jsonpath_jq_selector.py | 2 +- changedetectionio/tests/test_nonrenderable_pages.py | 2 +- changedetectionio/tests/test_obfuscations.py | 2 +- changedetectionio/tests/test_pdf.py | 2 +- changedetectionio/tests/test_restock_itemprop.py | 2 +- changedetectionio/tests/test_rss.py | 2 +- changedetectionio/tests/test_share_watch.py | 2 +- changedetectionio/tests/test_source.py | 2 +- changedetectionio/tests/test_trigger.py | 2 +- changedetectionio/tests/test_trigger_regex.py | 2 +- changedetectionio/tests/test_trigger_regex_with_filter.py | 2 +- changedetectionio/tests/test_unique_lines.py | 2 +- changedetectionio/tests/unit/test_jinja2_security.py | 2 +- changedetectionio/tests/unit/test_notification_diff.py | 2 +- changedetectionio/tests/unit/test_restock_logic.py | 2 +- changedetectionio/tests/unit/test_watch_model.py | 2 +- changedetectionio/tests/util.py | 2 +- changedetectionio/tests/visualselector/conftest.py | 2 +- changedetectionio/tests/visualselector/test_fetch_data.py | 2 +- 63 files changed, 63 insertions(+), 63 deletions(-) diff --git a/changedetection.py b/changedetection.py index 2d0b5d2c..ead2b8c5 100755 --- a/changedetection.py +++ b/changedetection.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Only exists for direct CLI usage diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 02e68842..bb22ce01 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Read more https://github.com/dgtlmoon/changedetection.io/wiki diff --git a/changedetectionio/blueprint/browser_steps/browser_steps.py b/changedetectionio/blueprint/browser_steps/browser_steps.py index 292d7a8a..6f38be2e 100644 --- a/changedetectionio/blueprint/browser_steps/browser_steps.py +++ b/changedetectionio/blueprint/browser_steps/browser_steps.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import os import time diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index 6fddc361..0ecfb75b 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import datetime import flask_login diff --git a/changedetectionio/tests/conftest.py b/changedetectionio/tests/conftest.py index 08f98463..50f7104b 100644 --- a/changedetectionio/tests/conftest.py +++ b/changedetectionio/tests/conftest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import resource import time from threading import Thread diff --git a/changedetectionio/tests/custom_browser_url/test_custom_browser_url.py b/changedetectionio/tests/custom_browser_url/test_custom_browser_url.py index dcb93d15..87490a77 100644 --- a/changedetectionio/tests/custom_browser_url/test_custom_browser_url.py +++ b/changedetectionio/tests/custom_browser_url/test_custom_browser_url.py @@ -1,4 +1,4 @@ -# !/usr/bin/python3 +#!/usr/bin/env python3 import os from flask import url_for diff --git a/changedetectionio/tests/fetchers/conftest.py b/changedetectionio/tests/fetchers/conftest.py index 430513d4..9a4bf56b 100644 --- a/changedetectionio/tests/fetchers/conftest.py +++ b/changedetectionio/tests/fetchers/conftest.py @@ -1,3 +1,3 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 from .. import conftest diff --git a/changedetectionio/tests/fetchers/test_content.py b/changedetectionio/tests/fetchers/test_content.py index 7ee43c65..8d468cd4 100644 --- a/changedetectionio/tests/fetchers/test_content.py +++ b/changedetectionio/tests/fetchers/test_content.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/proxy_list/conftest.py b/changedetectionio/tests/proxy_list/conftest.py index 95812e2e..0adb1c43 100644 --- a/changedetectionio/tests/proxy_list/conftest.py +++ b/changedetectionio/tests/proxy_list/conftest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 from .. import conftest diff --git a/changedetectionio/tests/proxy_list/test_multiple_proxy.py b/changedetectionio/tests/proxy_list/test_multiple_proxy.py index 259aa5e8..e312df5a 100644 --- a/changedetectionio/tests/proxy_list/test_multiple_proxy.py +++ b/changedetectionio/tests/proxy_list/test_multiple_proxy.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import os from flask import url_for diff --git a/changedetectionio/tests/proxy_list/test_noproxy.py b/changedetectionio/tests/proxy_list/test_noproxy.py index 05b8babf..976fce4f 100644 --- a/changedetectionio/tests/proxy_list/test_noproxy.py +++ b/changedetectionio/tests/proxy_list/test_noproxy.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/proxy_list/test_proxy.py b/changedetectionio/tests/proxy_list/test_proxy.py index 19bd8a40..cefdce30 100644 --- a/changedetectionio/tests/proxy_list/test_proxy.py +++ b/changedetectionio/tests/proxy_list/test_proxy.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/proxy_list/test_select_custom_proxy.py b/changedetectionio/tests/proxy_list/test_select_custom_proxy.py index 4453a628..1ae7ac69 100644 --- a/changedetectionio/tests/proxy_list/test_select_custom_proxy.py +++ b/changedetectionio/tests/proxy_list/test_select_custom_proxy.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/proxy_socks5/test_socks5_proxy.py b/changedetectionio/tests/proxy_socks5/test_socks5_proxy.py index e395e785..f9ce166d 100644 --- a/changedetectionio/tests/proxy_socks5/test_socks5_proxy.py +++ b/changedetectionio/tests/proxy_socks5/test_socks5_proxy.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import os import time from flask import url_for diff --git a/changedetectionio/tests/proxy_socks5/test_socks5_proxy_sources.py b/changedetectionio/tests/proxy_socks5/test_socks5_proxy_sources.py index a5c67206..0da50acc 100644 --- a/changedetectionio/tests/proxy_socks5/test_socks5_proxy_sources.py +++ b/changedetectionio/tests/proxy_socks5/test_socks5_proxy_sources.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import os import time from flask import url_for diff --git a/changedetectionio/tests/restock/conftest.py b/changedetectionio/tests/restock/conftest.py index 430513d4..9a4bf56b 100644 --- a/changedetectionio/tests/restock/conftest.py +++ b/changedetectionio/tests/restock/conftest.py @@ -1,3 +1,3 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 from .. import conftest diff --git a/changedetectionio/tests/restock/test_restock.py b/changedetectionio/tests/restock/test_restock.py index 026f1442..38cbc98e 100644 --- a/changedetectionio/tests/restock/test_restock.py +++ b/changedetectionio/tests/restock/test_restock.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import os import time from flask import url_for diff --git a/changedetectionio/tests/smtp/smtp-test-server.py b/changedetectionio/tests/smtp/smtp-test-server.py index e294cf01..a6e3df66 100755 --- a/changedetectionio/tests/smtp/smtp-test-server.py +++ b/changedetectionio/tests/smtp/smtp-test-server.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import asyncio from aiosmtpd.controller import Controller from aiosmtpd.smtp import SMTP diff --git a/changedetectionio/tests/test_add_replace_remove_filter.py b/changedetectionio/tests/test_add_replace_remove_filter.py index 0ad2b461..4d47f43e 100644 --- a/changedetectionio/tests/test_add_replace_remove_filter.py +++ b/changedetectionio/tests/test_add_replace_remove_filter.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import os.path import time from flask import url_for diff --git a/changedetectionio/tests/test_api.py b/changedetectionio/tests/test_api.py index 791e02f9..55ea4635 100644 --- a/changedetectionio/tests/test_api.py +++ b/changedetectionio/tests/test_api.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_auth.py b/changedetectionio/tests/test_auth.py index 3406dc7b..20fa96ba 100644 --- a/changedetectionio/tests/test_auth.py +++ b/changedetectionio/tests/test_auth.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_automatic_follow_ldjson_price.py b/changedetectionio/tests/test_automatic_follow_ldjson_price.py index 686584d4..e09661e3 100644 --- a/changedetectionio/tests/test_automatic_follow_ldjson_price.py +++ b/changedetectionio/tests/test_automatic_follow_ldjson_price.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_backend.py b/changedetectionio/tests/test_backend.py index f63e6712..f7c259eb 100644 --- a/changedetectionio/tests/test_backend.py +++ b/changedetectionio/tests/test_backend.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_backup.py b/changedetectionio/tests/test_backup.py index 650981ad..c6dfd956 100644 --- a/changedetectionio/tests/test_backup.py +++ b/changedetectionio/tests/test_backup.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 from .util import set_original_response, live_server_setup, wait_for_all_checks from flask import url_for diff --git a/changedetectionio/tests/test_block_while_text_present.py b/changedetectionio/tests/test_block_while_text_present.py index 9d966492..62ecb598 100644 --- a/changedetectionio/tests/test_block_while_text_present.py +++ b/changedetectionio/tests/test_block_while_text_present.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_clone.py b/changedetectionio/tests/test_clone.py index 3dd81c2b..2e97c77e 100644 --- a/changedetectionio/tests/test_clone.py +++ b/changedetectionio/tests/test_clone.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_css_selector.py b/changedetectionio/tests/test_css_selector.py index cc0aa86f..7b7d0ee8 100644 --- a/changedetectionio/tests/test_css_selector.py +++ b/changedetectionio/tests/test_css_selector.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_element_removal.py b/changedetectionio/tests/test_element_removal.py index 39d5a03a..121d2ab9 100644 --- a/changedetectionio/tests/test_element_removal.py +++ b/changedetectionio/tests/test_element_removal.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time diff --git a/changedetectionio/tests/test_encoding.py b/changedetectionio/tests/test_encoding.py index c065748a..08bdf170 100644 --- a/changedetectionio/tests/test_encoding.py +++ b/changedetectionio/tests/test_encoding.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # coding=utf-8 import time diff --git a/changedetectionio/tests/test_errorhandling.py b/changedetectionio/tests/test_errorhandling.py index 6ce8bfc7..0cc159b8 100644 --- a/changedetectionio/tests/test_errorhandling.py +++ b/changedetectionio/tests/test_errorhandling.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time diff --git a/changedetectionio/tests/test_extract_csv.py b/changedetectionio/tests/test_extract_csv.py index 9937fbba..4616679d 100644 --- a/changedetectionio/tests/test_extract_csv.py +++ b/changedetectionio/tests/test_extract_csv.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_extract_regex.py b/changedetectionio/tests/test_extract_regex.py index eb9cf0ff..da52da33 100644 --- a/changedetectionio/tests/test_extract_regex.py +++ b/changedetectionio/tests/test_extract_regex.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_filter_exist_changes.py b/changedetectionio/tests/test_filter_exist_changes.py index 2deaf5c6..dabb58af 100644 --- a/changedetectionio/tests/test_filter_exist_changes.py +++ b/changedetectionio/tests/test_filter_exist_changes.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # https://www.reddit.com/r/selfhosted/comments/wa89kp/comment/ii3a4g7/?context=3 import os diff --git a/changedetectionio/tests/test_group.py b/changedetectionio/tests/test_group.py index b54345f7..82f994fc 100644 --- a/changedetectionio/tests/test_group.py +++ b/changedetectionio/tests/test_group.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_history_consistency.py b/changedetectionio/tests/test_history_consistency.py index ecb5036d..7f171c44 100644 --- a/changedetectionio/tests/test_history_consistency.py +++ b/changedetectionio/tests/test_history_consistency.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time import os diff --git a/changedetectionio/tests/test_html_to_text.py b/changedetectionio/tests/test_html_to_text.py index 766a74f0..b1bc3ca3 100644 --- a/changedetectionio/tests/test_html_to_text.py +++ b/changedetectionio/tests/test_html_to_text.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """Test suite for the method to extract text from an html string""" from ..html_tools import html_to_text diff --git a/changedetectionio/tests/test_ignore_regex_text.py b/changedetectionio/tests/test_ignore_regex_text.py index f480c91b..06c60ea4 100644 --- a/changedetectionio/tests/test_ignore_regex_text.py +++ b/changedetectionio/tests/test_ignore_regex_text.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 from . util import live_server_setup from changedetectionio import html_tools diff --git a/changedetectionio/tests/test_ignore_text.py b/changedetectionio/tests/test_ignore_text.py index 33cde7a9..60a2f3a2 100644 --- a/changedetectionio/tests/test_ignore_text.py +++ b/changedetectionio/tests/test_ignore_text.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_ignorehighlighter.py b/changedetectionio/tests/test_ignorehighlighter.py index 3a1277d9..58ecfeb4 100644 --- a/changedetectionio/tests/test_ignorehighlighter.py +++ b/changedetectionio/tests/test_ignorehighlighter.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_ignorehyperlinks.py b/changedetectionio/tests/test_ignorehyperlinks.py index 0492b5cc..d739eb58 100644 --- a/changedetectionio/tests/test_ignorehyperlinks.py +++ b/changedetectionio/tests/test_ignorehyperlinks.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """Test suite for the render/not render anchor tag content functionality""" import time diff --git a/changedetectionio/tests/test_ignorestatuscode.py b/changedetectionio/tests/test_ignorestatuscode.py index bc9ad810..9ec8086a 100644 --- a/changedetectionio/tests/test_ignorestatuscode.py +++ b/changedetectionio/tests/test_ignorestatuscode.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_ignorewhitespace.py b/changedetectionio/tests/test_ignorewhitespace.py index 2c4e3c72..25d16244 100644 --- a/changedetectionio/tests/test_ignorewhitespace.py +++ b/changedetectionio/tests/test_ignorewhitespace.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_import.py b/changedetectionio/tests/test_import.py index dc7b58eb..4b25d654 100644 --- a/changedetectionio/tests/test_import.py +++ b/changedetectionio/tests/test_import.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import io import os import time diff --git a/changedetectionio/tests/test_jinja2.py b/changedetectionio/tests/test_jinja2.py index 096310ec..fba9f227 100644 --- a/changedetectionio/tests/test_jinja2.py +++ b/changedetectionio/tests/test_jinja2.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_jsonpath_jq_selector.py b/changedetectionio/tests/test_jsonpath_jq_selector.py index 6b510c10..d139e1cf 100644 --- a/changedetectionio/tests/test_jsonpath_jq_selector.py +++ b/changedetectionio/tests/test_jsonpath_jq_selector.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # coding=utf-8 import time diff --git a/changedetectionio/tests/test_nonrenderable_pages.py b/changedetectionio/tests/test_nonrenderable_pages.py index 23ce3563..4e9169cf 100644 --- a/changedetectionio/tests/test_nonrenderable_pages.py +++ b/changedetectionio/tests/test_nonrenderable_pages.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_obfuscations.py b/changedetectionio/tests/test_obfuscations.py index 1d8519b4..3c733616 100644 --- a/changedetectionio/tests/test_obfuscations.py +++ b/changedetectionio/tests/test_obfuscations.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_pdf.py b/changedetectionio/tests/test_pdf.py index 746f34db..1f7be0ff 100644 --- a/changedetectionio/tests/test_pdf.py +++ b/changedetectionio/tests/test_pdf.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_restock_itemprop.py b/changedetectionio/tests/test_restock_itemprop.py index 649e9f23..16560aa6 100644 --- a/changedetectionio/tests/test_restock_itemprop.py +++ b/changedetectionio/tests/test_restock_itemprop.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import os import time diff --git a/changedetectionio/tests/test_rss.py b/changedetectionio/tests/test_rss.py index 0456fab7..e249e0ad 100644 --- a/changedetectionio/tests/test_rss.py +++ b/changedetectionio/tests/test_rss.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_share_watch.py b/changedetectionio/tests/test_share_watch.py index 968eb74b..a8e53601 100644 --- a/changedetectionio/tests/test_share_watch.py +++ b/changedetectionio/tests/test_share_watch.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_source.py b/changedetectionio/tests/test_source.py index fc6834d6..cffd1bd6 100644 --- a/changedetectionio/tests/test_source.py +++ b/changedetectionio/tests/test_source.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_trigger.py b/changedetectionio/tests/test_trigger.py index bd6708ee..d13fe79e 100644 --- a/changedetectionio/tests/test_trigger.py +++ b/changedetectionio/tests/test_trigger.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_trigger_regex.py b/changedetectionio/tests/test_trigger_regex.py index 8332bb8c..ef465a35 100644 --- a/changedetectionio/tests/test_trigger_regex.py +++ b/changedetectionio/tests/test_trigger_regex.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_trigger_regex_with_filter.py b/changedetectionio/tests/test_trigger_regex_with_filter.py index b7d8e661..4e3eba72 100644 --- a/changedetectionio/tests/test_trigger_regex_with_filter.py +++ b/changedetectionio/tests/test_trigger_regex_with_filter.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/test_unique_lines.py b/changedetectionio/tests/test_unique_lines.py index 243f3087..65840073 100644 --- a/changedetectionio/tests/test_unique_lines.py +++ b/changedetectionio/tests/test_unique_lines.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import time from flask import url_for diff --git a/changedetectionio/tests/unit/test_jinja2_security.py b/changedetectionio/tests/unit/test_jinja2_security.py index eb43db9d..7616bb65 100644 --- a/changedetectionio/tests/unit/test_jinja2_security.py +++ b/changedetectionio/tests/unit/test_jinja2_security.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # run from dir above changedetectionio/ dir # python3 -m unittest changedetectionio.tests.unit.test_jinja2_security diff --git a/changedetectionio/tests/unit/test_notification_diff.py b/changedetectionio/tests/unit/test_notification_diff.py index c7befc20..b106f6a1 100755 --- a/changedetectionio/tests/unit/test_notification_diff.py +++ b/changedetectionio/tests/unit/test_notification_diff.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # run from dir above changedetectionio/ dir # python3 -m unittest changedetectionio.tests.unit.test_notification_diff diff --git a/changedetectionio/tests/unit/test_restock_logic.py b/changedetectionio/tests/unit/test_restock_logic.py index c189844f..46fff2c7 100644 --- a/changedetectionio/tests/unit/test_restock_logic.py +++ b/changedetectionio/tests/unit/test_restock_logic.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # run from dir above changedetectionio/ dir # python3 -m unittest changedetectionio.tests.unit.test_restock_logic diff --git a/changedetectionio/tests/unit/test_watch_model.py b/changedetectionio/tests/unit/test_watch_model.py index 78ca60b2..a9e3df3c 100644 --- a/changedetectionio/tests/unit/test_watch_model.py +++ b/changedetectionio/tests/unit/test_watch_model.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # run from dir above changedetectionio/ dir # python3 -m unittest changedetectionio.tests.unit.test_notification_diff diff --git a/changedetectionio/tests/util.py b/changedetectionio/tests/util.py index 1ee87ea9..1b0b3e5b 100644 --- a/changedetectionio/tests/util.py +++ b/changedetectionio/tests/util.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 from flask import make_response, request from flask import url_for diff --git a/changedetectionio/tests/visualselector/conftest.py b/changedetectionio/tests/visualselector/conftest.py index 430513d4..9a4bf56b 100644 --- a/changedetectionio/tests/visualselector/conftest.py +++ b/changedetectionio/tests/visualselector/conftest.py @@ -1,3 +1,3 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 from .. import conftest diff --git a/changedetectionio/tests/visualselector/test_fetch_data.py b/changedetectionio/tests/visualselector/test_fetch_data.py index e0710c43..de3b9030 100644 --- a/changedetectionio/tests/visualselector/test_fetch_data.py +++ b/changedetectionio/tests/visualselector/test_fetch_data.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import os from flask import url_for