Revision c2f28aaed97ab601d30035756a47535caaf5c634 authored by Eh Tan on 12 November 2007, 22:50:32 UTC, committed by Eh Tan on 12 November 2007, 22:50:32 UTC
svn+ssh://svn@geodynamics.org/cig/mc/3D/CitcomS/trunk

........
  r8278 | tan2 | 2007-11-12 14:38:36 -0800 (Mon, 12 Nov 2007) | 1 line
  
  Added mishing header file to the makefile, also avoided compiling unused code.
........
  r8279 | tan2 | 2007-11-12 14:42:56 -0800 (Mon, 12 Nov 2007) | 1 line
  
  Updated the version number and file NEWS
........

1 parent 4cab4ca
Raw File
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