CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/dev/laptop/util.py
Views: 687
1
import os, json
2
3
join = os.path.join
4
5
def cmd(s):
6
print(s)
7
if os.system(s):
8
raise RuntimeError
9
10
def chdir():
11
os.chdir(os.path.split(os.path.abspath(__file__))[0])
12
13