Skip to content

Instantly share code, notes, and snippets.

View TechStudent10's full-sized avatar
doing stuff

TechStudent10 TechStudent10

doing stuff
View GitHub Profile
TechStudent10 /
Last active August 2, 2022 17:46
A Python script that restarts another Python script when it detects changes in it.
import os, sys, platform
currentFile = ""
while currentFile == "" or currentFile == None:
currentFile = input("What is the file: ")
currentInfo = ""
def check():
global currentFile