Home | History | Annotate | Download | only in wsgiref

Lines Matching refs:script_name

60     url += quote(environ.get('SCRIPT_NAME') or '/')
68 if not environ.get('SCRIPT_NAME'):
77 """Shift a name from PATH_INFO to SCRIPT_NAME, returning it
81 the original PATH_INFO or SCRIPT_NAME.
84 '/' to SCRIPT_NAME, even though empty path segments are normally ignored,
85 and SCRIPT_NAME doesn't normally end in a '/'. This is intentional
98 script_name = environ.get('SCRIPT_NAME','')
99 script_name = posixpath.normpath(script_name+'/'+name)
100 if script_name.endswith('/'):
101 script_name = script_name[:-1]
102 if not name and not script_name.endswith('/'):
103 script_name += '/'
105 environ['SCRIPT_NAME'] = script_name
121 SERVER_NAME, SERVER_PORT, REQUEST_METHOD, SCRIPT_NAME, PATH_INFO,
136 if 'SCRIPT_NAME' not in environ and 'PATH_INFO' not in environ:
137 environ.setdefault('SCRIPT_NAME','')