Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/smc_sagews/smc_sagews/__init__.py
Views: 286
1
# All our code in this modules assumes that an environment variable SMC exists
2
# and that the directory is points to also exists. We make it ~/.smc by default.
3
4
from __future__ import absolute_import
5
6
import os
7
if not 'SMC' in os.environ:
8
os.environ['SMC'] = os.path.join(os.environ['HOME'], '.smc')
9
10
if not os.path.exists(os.environ['SMC']):
11
os.makedirs(os.environ['SMC'])
12