Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 39558
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
import os
5
if not 'SMC' in os.environ:
6
os.environ['SMC'] = os.path.join(os.environ['HOME'], '.smc')
7
8
if not os.path.exists(os.environ['SMC']):
9
os.makedirs(os.environ['SMC'])
10