diff --git a/AutismBotIngame/python/pyhoca_display.py b/AutismBotIngame/python/pyhoca_display.py index 4ff2f473..7e789248 100644 --- a/AutismBotIngame/python/pyhoca_display.py +++ b/AutismBotIngame/python/pyhoca_display.py @@ -4,14 +4,14 @@ import subprocess whoami = subprocess.getoutput(["whoami"]) with open(f'/home/{whoami}/ze_runner/config.json') as jsonfile: - data_ports = json.load(jsonfile) + data_ports = json.load(jsonfile) +#enter screen to enter password def main(): - with Display() as disp: - d = subprocess.getoutput(["echo $DISPLAY"]) - print(d) - subprocess.getoutput([f"pyhoca-cli --server localhost -N --password {data_ports['x2go_pw']}"]) - + with Display() as disp: + d = subprocess.getoutput(["echo $DISPLAY"]) + print(d) + subprocess.getoutput([f"pyhoca-cli --server localhost -N --password {data_ports['x2go_pw']}"]) if __name__ == '__main__': - main() + main()