Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News Sign UpSign In
| Download
Views: 29861
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