https://github.com/geodynamics/citcoms
Revision 75fda8c27c09862ed9421f27fa74aec3630b45e1 authored by Rajesh Kommu on 27 August 2014, 21:31:05 UTC, committed by Rajesh Kommu on 27 August 2014, 21:31:05 UTC
1 parent 1fe296f
Tip revision: 75fda8c27c09862ed9421f27fa74aec3630b45e1 authored by Rajesh Kommu on 27 August 2014, 21:31:05 UTC
Changes to include Py2C in the build process
Changes to include Py2C in the build process
Tip revision: 75fda8c
citcoms_datadir
#!/usr/bin/env python
def get_var():
# get your username on this machine, and make it upper case
import os
var = os.environ.get("USER")
return var.upper()
# invariant prefix of datadir
prefix = "/scratch/"
# invariant suffix of datadir
suffix = ""
# get the machine-dependent part of datadir
var_path = get_var()
# construct the full string for datadir
print "%s%s%s" % ( prefix, var_path, suffix )
Computing file changes ...