import subprocess single_sync=["add_user","add_generic_users","gescen_partial","gescen_full"] if NEVERLAND_VAR in single_sync: subprocess.Popen(["/usr/bin/php","/usr/share/moodle/auth/ldap/cli/sync_users.php"]).communicate()