GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 28ac24...6b7ebe )
by thatsIch
01:00
created

get_cached_plugin_path()   A

Complexity

Conditions 2

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
dl 0
loc 15
rs 9.4285
1
import os.path
2
from functools import lru_cache
3
4
from .. import logger
5
6
from .setting_path_provider import get_cached_setting_path
7
8
9
@lru_cache(maxsize=None)
10
def get_cached_plugin_path():
11
    """
12
    Get the value of the #PLUGINSPATH# variable
13
    """
14
15
    settingspath = get_cached_setting_path()
16
    if not settingspath:
17
        logger.error(
18
            __file__,
19
            "get_cached_plugin_path()",
20
            "#SETTINGSPATH# resolution required but was not found"
21
        )
22
        return
23
    return os.path.join(settingspath, "Plugins") + "\\"
24