Skip to content

Commit 8e0e6df

Browse files
committed
refresh start image each time usercode is run
1 parent 5702897 commit 8e0e6df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runner/start.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python3
22

3-
import os, sys
3+
import os, sys, shutil
44
import RPi.GPIO as GPIO
55
import json
66
import time
@@ -107,6 +107,9 @@ def __start_usercode(self):
107107

108108
pipe_fd = self.HOPPER_CLIENT.get_pipe_by_pipe_name(self.LOG_PIPE_NAME).fd
109109

110+
# Reload the image if possible
111+
self.__load_start_graphic()
112+
110113
environment = dict(os.environ)
111114
environment["PYTHONPATH"] = ROBOT_LIB_LOCATION
112115
# Start the user code.

0 commit comments

Comments
 (0)