Index: gcl.py |
diff --git a/gcl.py b/gcl.py |
index 01a93e11c719273847b9b956cc6a0e332243843e..fcfd114646406f662308798acb12d1ac676e405f 100755 |
--- a/gcl.py |
+++ b/gcl.py |
@@ -123,6 +123,9 @@ def GetCachedFile(filename, max_age=60*60*24*3, use_root=False): |
Note: The cache will be inconsistent if the same file is retrieved with both |
use_root=True and use_root=False. Don't be stupid. |
""" |
+ if not os.path.isdir(GetCacheDir()): |
+ os.makedirs(GetCacheDir()) |
+ |
if filename not in FILES_CACHE: |
# Don't try to look up twice. |
FILES_CACHE[filename] = None |