diff --git a/opnk.py b/opnk.py index a7d64f7..3cfe025 100755 --- a/opnk.py +++ b/opnk.py @@ -189,6 +189,11 @@ class opencache(): cachepath = netcache.fetch(inpath,**kwargs) if not cachepath: return False + elif os.path.exists(inpath): + cachepath = inpath + else: + print("%s does not exist"%inpath) + return renderer = self.get_renderer(inpath,mode=mode) if renderer and mode: renderer.set_mode(mode)