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 4import os 5if not 'SMC' in os.environ: 6 os.environ['SMC'] = os.path.join(os.environ['HOME'], '.smc') 7 8if not os.path.exists(os.environ['SMC']): 9 os.makedirs(os.environ['SMC']) 10