13 lines
336 B
Python
13 lines
336 B
Python
# Copyright 2019 (c) Anna Schumaker.
|
|
from . import library
|
|
import os
|
|
|
|
plist_map = {"Library" : dict()}
|
|
|
|
def lookup_library(path):
|
|
path = os.path.abspath(path)
|
|
plist = plist_map["Library"].get(path, None)
|
|
if plist != None:
|
|
return plist
|
|
return plist_map["Library"].setdefault(path, library.LibraryPlaylist(path))
|