Skip to content

Fix some but not all undefined names in scripts/__init__.py#587

Closed
cclauss wants to merge 0 commit intoopencv:masterfrom
cclauss:patch-2
Closed

Fix some but not all undefined names in scripts/__init__.py#587
cclauss wants to merge 0 commit intoopencv:masterfrom
cclauss:patch-2

Conversation

@cclauss
Copy link
Contributor

@cclauss cclauss commented Nov 25, 2021

Related to changes made in #563

$ flake8 . --count --select=E9,F63,F7,F82,Y --show-source --statistics

./opencv-python/scripts/__init__.py:2:5: F821 undefined name 'LOADER_DIR'
    LOADER_DIR
    ^
./opencv-python/scripts/__init__.py:3:5: F821 undefined name 'PYTHON_EXTENSIONS_PATHS'
] + PYTHON_EXTENSIONS_PATHS
    ^
./opencv-python/scripts/__init__.py:15:4: F821 undefined name 'sys'
if sys.platform.startswith("linux") and ci_and_not_headless:
   ^
./opencv-python/scripts/__init__.py:16:5: F821 undefined name 'os'
    os.environ["QT_QPA_PLATFORM_PLUGIN_PATH"] = os.path.join(
    ^
./opencv-python/scripts/__init__.py:16:49: F821 undefined name 'os'
    os.environ["QT_QPA_PLATFORM_PLUGIN_PATH"] = os.path.join(
                                                ^
./opencv-python/scripts/__init__.py:17:9: F821 undefined name 'os'
        os.path.dirname(os.path.abspath(__file__)), "qt", "plugins"
        ^
./opencv-python/scripts/__init__.py:17:25: F821 undefined name 'os'
        os.path.dirname(os.path.abspath(__file__)), "qt", "plugins"
                        ^
./opencv-python/scripts/__init__.py:21:4: F821 undefined name 'sys'
if sys.platform.startswith("linux") and ci_and_not_headless:
   ^
./opencv-python/scripts/__init__.py:22:5: F821 undefined name 'os'
    os.environ["QT_QPA_FONTDIR"] = os.path.join(
    ^
./opencv-python/scripts/__init__.py:22:36: F821 undefined name 'os'
    os.environ["QT_QPA_FONTDIR"] = os.path.join(
                                   ^
./opencv-python/scripts/__init__.py:23:9: F821 undefined name 'os'
        os.path.dirname(os.path.abspath(__file__)), "qt", "fonts"
        ^
./opencv-python/scripts/__init__.py:23:25: F821 undefined name 'os'
        os.path.dirname(os.path.abspath(__file__)), "qt", "fonts"
                        ^
12    F821 undefined name 'LOADER_DIR'
12

cclauss added a commit to cclauss/opencv-python that referenced this pull request Nov 25, 2021
@cclauss cclauss closed this Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant