From e81ad599d1d3ba888c7728a1eaad815c4979fd10 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 20 Feb 2014 11:02:29 -0800 Subject: [PATCH] server: Create the cache directory if it doesn't already exist --- package_cache/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package_cache/server.py b/package_cache/server.py index 9fea4a5..4f1e6b0 100644 --- a/package_cache/server.py +++ b/package_cache/server.py @@ -16,6 +16,8 @@ class Server (object): def __init__(self, sources, cache): self.sources = sources self.cache = cache + if not _os.path.isdir(self.cache): + _os.makedirs(path=self.cache, exist_ok=True) def __call__(self, environ, start_response): try: -- 2.26.2