diff --git a/pypath/omnipath/server/run.py b/pypath/omnipath/server/run.py index 907888627..75449dc47 100644 --- a/pypath/omnipath/server/run.py +++ b/pypath/omnipath/server/run.py @@ -283,7 +283,7 @@ def _set_www_root(self): def _local_path(self, request): - if request.postpath and request.postpath[-1].startswith('_'): + if request.postpath and request.postpath[-1][0] in ('_', '.'): return @@ -291,7 +291,7 @@ def _local_path(self, request): path = os.path.join(wwwroot, *request.postpath) - if os.path.exists(path): + if os.path.isfile(path): return path diff --git a/pyproject.toml b/pyproject.toml index 96b87db51..a300f1957 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,7 @@ openpyxl = "*" pandas = "*" psutil = "*" pycurl = "*" -pypath_common = ">=0.1.1" +pypath_common = ">=0.2.0" pyreadr = "*" PyYAML = "*" rdata = "*"