Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
finding the limbo key

TechStudent10 TechStudent10

💻
finding the limbo key
View GitHub Profile
@TechStudent10
TechStudent10 / restart.py
Last active Aug 2, 2022
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