Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

TechStudent11 TechStudent11

🎯
Focusing
View GitHub Profile
@TechStudent11
TechStudent11 / restart.py
Last active May 29, 2021
A Python script that restarts another Python script when it detects changes in it.
View restart.py
import os, sys, platform
currentFile = ""
while currentFile == "" or currentFile == None:
currentFile = input("What is the file: ")
currentInfo = ""
def check():
global currentFile