diff --git a/.env b/.env new file mode 100644 index 0000000000000000000000000000000000000000..f6a1796dd420452a6bcc6ca634037d24be10d1b8 --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +ASSIGNMENT_TITLE="" +# LATE_PENALTY= +# SCORE_DEFAULT= +POINTS_FOR_RUNS=[] \ No newline at end of file diff --git a/main.py b/main.py index 58bfad179d2f182b346fd9789fa2a9ca525c567c..da7a21a6174ec646a1cacf3d386870fc6fa941c8 100644 --- a/main.py +++ b/main.py @@ -20,24 +20,32 @@ global pointsForRun global title global defaults +""" +Environment Variable Imports +""" + +title = os.getenv("ASSIGNMENT_TITLE", default="Assignment Title") +scoreDefault = os.getenv("SCORE_DEFAULT", default=100) # What the score is out of +latePenalty = scoreDefault * int(os.getenv("LATE_PENALTY", default="1")) +defaults = os.getenv("POINTS_FOR_RUNS", default=[10,20,0]) """ * CHANGEABLE """ # Student Variables -scoreDefault = 100 # What the score is out of +# scoreDefault = 100 # What the score is out of # Title of lab rubric -title = "Name of Assignment" +# title = "Name of Assignment" # Default points stored for each run. Each list entry is a run. A default run score of 0 allows extra credit. -defaults = [10,15,20,0] +# defaults = [10,15,20,0] # Late penalty if submission is late. 0 for no penalty -latePenalty = scoreDefault * 0.1 # 10% of score default +# latePenalty = scoreDefault * 0.1 # 10% of score default """ ! NON CHANGEABLE