Revision 6ff6d36426b1556ecf379a4317026d765dcbaca0 authored by Eh Tan on 17 July 2007, 22:48:51 UTC, committed by Eh Tan on 17 July 2007, 22:48:51 UTC
1 parent c72dd9f
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 )
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...