https://github.com/geodynamics/citcoms
Revision 52452f78ae1e1ecc9f00aaf442c2387ebf248a6c authored by Eh Tan on 25 June 2009, 17:38:17 UTC, committed by Eh Tan on 25 June 2009, 17:38:17 UTC
svn+ssh://svn@geodynamics.org/cig/mc/3D/CitcomS/trunk

1 parent bcaed6d
Raw File
Tip revision: 52452f78ae1e1ecc9f00aaf442c2387ebf248a6c authored by Eh Tan on 25 June 2009, 17:38:17 UTC
Initialized merge tracking via "svnmerge" with revisions "1-15278" from
Tip revision: 52452f7
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 )
back to top