We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12eb664 commit 0170030Copy full SHA for 0170030
preprocess.py
@@ -0,0 +1,9 @@
1
+import os
2
+
3
4
+def replace_symlinks():
5
+ os.system("""find . -type l -exec sh -c 'target=$(readlink -f "$0"); rm "$0" && cp "$target" "$0"' {} \;""")
6
7
8
+if __name__ == "__main__":
9
+ replace_symlinks()
pyproject.toml
@@ -8,6 +8,11 @@ readme = "README.md"
[tool.poetry.scripts]
ctf = "ctfcli.__main__:main"
10
11
+[tool.poetry.build]
12
+# I don't understand why poetry doesn't seem to be following symlinks.
13
+# This script resolves the symlinks in the templates to the example challenge spec
14
+script = "preprocess.py"
15
16
[tool.poetry.dependencies]
17
python = "^3.8"
18
python-frontmatter = "^1.0.0"
0 commit comments