summaryrefslogtreecommitdiffstats
path: root/Smarker/smarker.py
diff options
context:
space:
mode:
Diffstat (limited to 'Smarker/smarker.py')
-rw-r--r--Smarker/smarker.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Smarker/smarker.py b/Smarker/smarker.py
index 106d426..46feb5f 100644
--- a/Smarker/smarker.py
+++ b/Smarker/smarker.py
@@ -72,7 +72,7 @@ if __name__ == "__main__":
action = misc_classes.EnvDefault,
envvar = "assessment",
help = "Path to an assessment .yml file",
- type = os.path.abspath,
+ # type = os.path.abspath,
required = True
)
parser.add_argument(
@@ -80,7 +80,7 @@ if __name__ == "__main__":
action = misc_classes.EnvDefault,
envvar = "submission",
help = "Path to a zip of a student's code",
- type = os.path.abspath,
+ # type = os.path.abspath,
required = True
)
parser.add_argument(
@@ -110,6 +110,12 @@ if __name__ == "__main__":
help = "Optional argument inherited from config file. Read smarker.conf for details."
)
+ try:
+ for dependency in os.environ["SMARKERDEPS"].split(","):
+ subprocess.run(["pip", "install", dependency])
+ except KeyError:
+ pass
+
args = vars(parser.parse_args())
main(**args)
\ No newline at end of file