Skip to content

Instantly share code, notes, and snippets.

@Razikus
Created February 18, 2018 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Razikus/7bd8274e95050611208ae3aa733bea2c to your computer and use it in GitHub Desktop.
Save Razikus/7bd8274e95050611208ae3aa733bea2c to your computer and use it in GitHub Desktop.
# 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