Skip to content
Snippets Groups Projects
Commit 09241609 authored by tuhe's avatar tuhe
Browse files

Getting ready for 2024

parents 30f940a7 6fce20d6
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@
# Local install: sudo pip install -e ./
import setuptools
import pkg_resources
with open("src/snipper/version.py", "r", encoding="utf-8") as fh:
__version__ = fh.read().split(" = ")[1].strip()[1:-1]
......
Metadata-Version: 2.1
Name: codesnipper
<<<<<<< HEAD
Version: 0.1.18.11
=======
Version: 0.1.18.10
>>>>>>> 6fce20d6e5d8194b6a072056a9a906939d4ee070
Summary: A lightweight framework for censoring student solutions files and extracting code + output
Home-page: https://lab.compute.dtu.dk/tuhe/snipper
Author: Tue Herlau
......
No preview for this file type
......@@ -32,6 +32,12 @@ def censor_code(lines, keep=True):
lines, nB, cut = fix_b(lines, keep=keep)
return lines
def fix_tags(lines):
for k, l in enumerate(lines):
# if l.find(" # !") > 0:
# print(f"{file}:{k}> bad snipper tag, fixing")
lines[k] = l.replace("# !", "#!")
return lines
def censor_file(file, run_files=True, run_out_dirs=None, cut_files=True,
output_solution=False,
......
<<<<<<< HEAD
__version__ = "0.1.18.11"
=======
__version__ = "0.1.18.10"
>>>>>>> 6fce20d6e5d8194b6a072056a9a906939d4ee070
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment