There are two variables.less within theme subdirectories, but this is working off the top-level theme_settings.less_dir, which is:
less_dir = path.join(settings.PROJECT_ROOT, 'public','media','theme_editor','less') #directory containing less files used by theme editor