Skip to content
Snippets Groups Projects
Commit dcedaf82 authored by ale's avatar ale
Browse files

missing imports et al

parent 059163ea
No related branches found
No related tags found
No related merge requests found
import json import json
import os
import shelve import shelve
import shutil import shutil
import urllib2 import urllib2
...@@ -18,6 +19,7 @@ class DJFS(LoggingMixIn, Operations): ...@@ -18,6 +19,7 @@ class DJFS(LoggingMixIn, Operations):
def __init__(self, server_url, cache_dir): def __init__(self, server_url, cache_dir):
self._server_url = server_url.rstrip('/') self._server_url = server_url.rstrip('/')
self._cache_dir = cache_dir self._cache_dir = cache_dir
os.makedirs(cache_dir)
self._opener = urllib2.build_opener() self._opener = urllib2.build_opener()
self._hash_cache = shelve.open( self._hash_cache = shelve.open(
os.path.joib(cache_dir, 'artist_album')) os.path.joib(cache_dir, 'artist_album'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment