Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_path_non_video(filename):
base_filename = os.path.basename(filename)
base_filename.lower()
extension = os.path.splitext(base_filename)[1]
if extension in MUSIC_EXTENSIONS:
return config.MUSIC_PATH
if extension in SOFTWARE_EXTENSIONS:
return config.APP_PATH
else:
return None