Hi how do I import files inside a txt file?
How do i import files inside a txt file if they exist in the current directory?
Here is the current code but I dont know how to do it correctly.
import paho.mqtt.client as mqtt
from mqtt import *
# from stateMachine import *
with open("list_of_devices.txt", "r") as reader:
for item in reader:
This is "list_of_devices.txt":
Each name refers to a python file.