8 lines
206 B
Python
8 lines
206 B
Python
import cherrypy
|
|
|
|
def current_module():
|
|
current_path = cherrypy.request.object_path
|
|
module_name = current_path.split('/')[1]
|
|
if module_name != 'index':
|
|
return module_name
|
|
return None
|