Revision e71855495ffc73e73cfc72fef6fb7b4e56129df1 authored by Rajesh Kommu on 24 September 2014, 18:19:52 UTC, committed by Rajesh Kommu on 24 September 2014, 18:19:52 UTC
1 parent c1f3930
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 ...