https://github.com/geodynamics/citcoms
Revision da31e1c57be337a615aa24538007f75204e1bbed authored by Sue Kientz on 22 March 2007, 22:11:02 UTC, committed by Sue Kientz on 22 March 2007, 22:11:02 UTC
1 parent 3339bf3
Tip revision: da31e1c57be337a615aa24538007f75204e1bbed authored by Sue Kientz on 22 March 2007, 22:11:02 UTC
added bib entry per eh, changed cover to citcoms (rem .py), changed to 2.2.0, todo notation removed; regen pdf
added bib entry per eh, changed cover to citcoms (rem .py), changed to 2.2.0, todo notation removed; regen pdf
Tip revision: da31e1c
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 ...