Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Github repo cloud-examples: https://github.com/sagemath/cloud-examples

Views: 8060
License: MIT
1
#!/usr/bin/env python
2
# This is a small wrapper script, because running sage on a
3
# *.sagetex.sage file in a subdirectory is broken. Once this
4
# works fine, and produces the sout file in the subdirectory,
5
# this script is no longer necessary -> modify latexmkrc !
6
import sys, os
7
print("run-sagetex.py -- START".center(80, "-"))
8
dir, file = sys.argv[1].split(os.path.sep)
9
os.system("cd %s && sage %s" % (dir, file))
10
print("run-sagetex.py -- END".center(80, "-"))
11
12