mirror of https://github.com/coddrago/Heroku
Do not load Okteto pinger if userbot is not installed there
parent
7769fdf742
commit
da84182164
|
@ -237,7 +237,12 @@ class Modules:
|
||||||
mods = [
|
mods = [
|
||||||
os.path.join(utils.get_base_dir(), MODULES_NAME, mod)
|
os.path.join(utils.get_base_dir(), MODULES_NAME, mod)
|
||||||
for mod in filter(
|
for mod in filter(
|
||||||
lambda x: (len(x) > 3 and x[-3:] == ".py" and x[0] != "_"),
|
lambda x: (
|
||||||
|
len(x) > 3
|
||||||
|
and x[-3:] == ".py"
|
||||||
|
and x[0] != "_"
|
||||||
|
and ("OKTETO" in os.environ or x != "okteto.py")
|
||||||
|
),
|
||||||
os.listdir(os.path.join(utils.get_base_dir(), MODULES_NAME)),
|
os.listdir(os.path.join(utils.get_base_dir(), MODULES_NAME)),
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue