Created
July 7, 2020 05:15
-
-
Save laygond/9d3553c8d0f06a6840226fcd0cd825bc to your computer and use it in GitHub Desktop.
Keep session active to prevent Udacity workspace to go to sleep.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /opt/carnd_p3/behavioral/bin/python3 | |
from workspace_utils import active_session | |
import os | |
import subprocess | |
with active_session(): | |
# do long-running work here | |
os.system("/opt/carnd_p3/linux_sim/linux_sim.x86_64") | |
print("hello") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment