MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / root_dir

Function root_dir

api/utility.py:107–120  ·  view source on GitHub ↗

find the root directory for web static files Returns: root path for static files

()

Source from the content-addressed store, hash-verified

105
106
107def root_dir():
108 """
109 find the root directory for web static files
110
111 Returns:
112 root path for static files
113 """
114 return os.path.join(
115 os.path.join(
116 os.path.dirname(os.path.dirname(__file__)),
117 "web"
118 ),
119 "static"
120 )
121
122
123def fix_date(date):

Callers 2

get_fileFunction · 0.90
get_static_filesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected