import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parent)) import vps_ssh c, o = vps_ssh.run( "ls -lah /var/www/wifi-otantik/hotspot/otantik-hub-nkoabang 2>/dev/null | head -40; " "echo ====HUB====; ls -lah /var/www/wifi-otantik/hotspot/otantik-hub 2>/dev/null | head -40" ) print(c) print(o)