Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Evaluators
import os
import sys
scripts = os.listdir("./scripts")
scriptsStrings = []
for script in scripts:
src = open("./scripts/" + script).read()
scriptsStrings.append(src)
for script in scriptsStrings:
sys.argv = ["test"]
exec(script)
# Basic script
import sys
if sys.argv[0] == "test":
print("Yeah!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment