mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 04:46:58 -05:00
Merge pull request #144 from deathbybandaid/dev
Make alt_epg loading more abstract
This commit is contained in:
commit
ddcb04892b
@ -1,3 +1,7 @@
|
|||||||
# pylama:ignore=W0401,W0611
|
import os
|
||||||
from .zap2it import *
|
|
||||||
from .tvtv import *
|
alt_epg_top_dir = os.path.dirname(__file__)
|
||||||
|
for entry in os.scandir(alt_epg_top_dir):
|
||||||
|
if entry.is_dir() and not entry.is_file() and entry.name[0] != '_':
|
||||||
|
imp_string = "from .%s import *" % entry.name
|
||||||
|
exec(imp_string)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user