MCPcopy Index your code
hub / github.com/rawpython/remi / all_paths

Method all_paths

remi/server.py:655–662  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

653 self._log.error('error processing GET request', exc_info=True)
654
655 def all_paths(self):
656 paths = {'res': os.path.join(os.path.dirname(__file__), "res")}
657 static_paths = self._app_args.get('static_file_path', {})
658 if not type(static_paths)==dict:
659 self._log.error("App's parameter static_file_path must be a Dictionary.", exc_info=False)
660 static_paths = {}
661 paths.update(static_paths)
662 return paths
663
664 def _get_static_file(self, filename):
665 filename = filename.replace("..", "") #avoid backdirs

Callers 1

_get_static_fileMethod · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected