From 2b9ae9be4487431852ef3ad02cb3d44bb7820582 Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Sat, 30 Mar 2024 15:46:28 +0800 Subject: [PATCH] fix:import cause diff fail --- .github/workflows/main.yml | 2 +- main.py | 2 +- utils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d38510a13..e03ca01948 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,7 +41,7 @@ jobs: - name: Set final file name id: set_final_file_name run: | - echo "::set-output name=final_file::$(python -c 'try: import user_config as config; except ImportError: import config; print(config.final_file)')" + echo "::set-output name=final_file::$(python -c 'try: import user_config as config; except ImportError: import config as config; print(config.final_file)')" - name: Install pipenv run: pip3 install --user pipenv diff --git a/main.py b/main.py index 3687e06d04..33148a295d 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ try: import user_config as config except ImportError: - import config + import config as config from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait diff --git a/utils.py b/utils.py index 780b0fbf64..66b2412d08 100644 --- a/utils.py +++ b/utils.py @@ -1,7 +1,7 @@ try: import user_config as config except ImportError: - import config + import config as config import aiohttp import asyncio import time