Functions
srt_ntbashutil_t Namespace Reference

Functions

def main ()
 MAIN FUNCTION. More...
 
def do_me ()
 

Function Documentation

def srt_ntbashutil_t.do_me ( )

Definition at line 83 of file srt_ntbashutil_t.py.

References main().

83 def do_me():
84  import profile
85  profile.run('main()','testprof')
86 
87 main()
88 #do_me()
def main()
MAIN FUNCTION.
def srt_ntbashutil_t.main ( )

MAIN FUNCTION.

1D plots hits vs w //

Definition at line 18 of file srt_ntbashutil_t.py.

References srt_ntbashutil.compress_path(), and srt_ntbashutil.translate_path().

Referenced by do_me().

18 def main():
19 
20  print "Translating /users/gwatts"
21  print srt_ntbashutil.translate_path("/users/gwatts")
22  print ""
23 
24  print "Translating /d0dist/dist/releases/test/doc"
25  print srt_ntbashutil.translate_path("/d0dist/dist/releases/test/doc")
26  print ""
27 
28  print "Translating /users/gwatts/d0/cvs_code/test_srt/ide_dump.txt"
29  print srt_ntbashutil.translate_path("/users/gwatts/d0/cvs_code/test_srt/ide_dump.txt")
30  print ""
31 
32  print "Translating /users/gwatts/d0/cvs_code/test_srt/include"
33  print srt_ntbashutil.translate_path("/users/gwatts/d0/cvs_code/test_srt/include")
34  print ""
35 
36  print "Doing symbolic link list /users/gwatts/d0/cvs_code/test_srt/include"
37  bash_list = srt_ntbashutil.resolve_bash_aliases (srt_ntbashutil.translate_path("/users/gwatts/d0/cvs_code/test_srt/include"))
38  for a_item in bash_list:
39  print a_item
40  print ""
41 
42  print "Doing symbolic link in release /d0dist/dist/releases/nt00.08.00/CINT/CINT"
43  bash_trans = srt_ntbashutil.translate_path("/d0dist/dist/releases/nt00.08.00/CINT/CINT")
44  bash_list = srt_ntbashutil.resolve_bash_aliases (bash_trans)
45  for a_item in bash_list:
46  print a_item
47  print " "
48  print "\n"
49 
50  print "Doing translation /d0dist/dist/releases/nt00.08.00/include/../CINT/CINT"
51  bash_trans = srt_ntbashutil.translate_path("/d0dist/dist/releases/nt00.08.00/include/../CINT/CINT")
52  print bash_trans
53  print "\n"
54 
55  print "Doing symbolic link in release /d0dist/dist/releases/nt00.08.00/include/CINT"
56  bash_trans = srt_ntbashutil.translate_path("/d0dist/dist/releases/nt00.08.00/include/CINT")
57  bash_list = srt_ntbashutil.resolve_bash_aliases (bash_trans)
58  for a_item in bash_list:
59  print a_item
60  print "\n"
61 
62  print "Doing symbolic link list /d0dist/dist/releases/test/include"
63  print " * Path relative to /d0dist/dist"
64  print " > Path relative to /users/gwatts"
65  t_source = srt_ntbashutil.translate_path("/d0dist/dist/releases/test/include")
66  bash_list = srt_ntbashutil.resolve_bash_aliases (t_source)
67 
68  for a_item in bash_list:
69  c_path = srt_ntbashutil.compress_path(a_item)
70  print c_path
71  print " * " + srt_path_util.get_relative_path (c_path, srt_ntbashutil.translate_path("/d0dist/dist"))
72  r_path = c_path
73  try:
74  r_path = srt_path_util.get_relative_path (c_path, srt_ntbashutil.translate_path("/users/gwatts"))
75  except:
76  i = 10
77  print " > " + r_path
78  print ""
79 
80  print "Looking for template file found via path var"
81  print " Resolution is " + srt_path_util.find_file_in_PATH ("srt_ntide_project_lib.template")
82 
def translate_path(bash_path)
def compress_path(nt_path)
def main()
MAIN FUNCTION.