()
| 300 | return None |
| 301 | |
| 302 | def get_plugins_paths(): |
| 303 | current_path = os.path.dirname(os.path.realpath(__file__)) |
| 304 | return [ |
| 305 | os.path.abspath(get_plugins_persistent_path()), |
| 306 | os.path.abspath(os.path.join(current_path, "..", "..", "coreplugins")), |
| 307 | ] |
| 308 | |
| 309 | def get_plugins_persistent_path(*paths): |
| 310 | return path_traversal_check(os.path.join(settings.MEDIA_ROOT, "plugins", *paths), os.path.join(settings.MEDIA_ROOT, "plugins")) |
no test coverage detected