Skip to content

Commit

Permalink
Merge branch 'quickfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Nov 30, 2023
2 parents 661c512 + 0ff5515 commit 2d97ffb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pypath/omnipath/server/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,15 @@ 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

for wwwroot in (self.wwwroot, self.wwwbuiltin):

path = os.path.join(wwwroot, *request.postpath)

if os.path.exists(path):
if os.path.isfile(path):

return path

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ openpyxl = "*"
pandas = "*"
psutil = "*"
pycurl = "*"
pypath_common = ">=0.1.1"
pypath_common = ">=0.2.0"
pyreadr = "*"
PyYAML = "*"
rdata = "*"
Expand Down

0 comments on commit 2d97ffb

Please sign in to comment.