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/minimal/util.py
Views: 687
1
from __future__ import print_function
2
3
import os, json, socket
4
5
join = os.path.join
6
7
def cmd(s):
8
print(s)
9
if os.system(s):
10
raise RuntimeError
11
12
def chdir():
13
os.chdir(os.path.split(os.path.abspath(__file__))[0])
14
15
16