0

I have two scripts:

  • one continuosly comunicates with the gps module and refresh the gps time variable.
  • the second one ask me when I want to view the gps time and prints it on the console.

How can I retrieve the gps_time variable of the first script (while it running in background) from the second script?

1 Answers1

0

You can do some socket programming.

Maybe you can get some idea from here: Interprocess communication in Python

Official docs: https://docs.python.org/3.10/library/socket.html