not specifying the location of python executable directly, but rather getting it from $path, otherwise the scripts won't work on every machine

This commit is contained in:
Christoph Kords 2012-02-07 13:09:10 +00:00
parent 2f07faa0e2
commit 51e8981ba3
14 changed files with 15 additions and 20 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,string,damask
from optparse import OptionParser, Option
@ -23,17 +23,12 @@ class extendableOption(Option):
def L2(object):
return math.sqrt(sum([x*x for x in object]))
# --------------------------------------------------------------------
# MAIN
# --------------------------------------------------------------------
parser = OptionParser(option_class=extendableOption, usage='%prog options [file[s]]', description = """
Add column(s) containing norm of requested column(s) being either vectors or tensors.
Add column(s) with derived values according to user defined arithmetic operation between column(s).
""" + string.replace('$Id: addNorm.py 1118 2011-11-23 14:54:53Z MPIE\p.eisenlohr $','\n','\\n')
)

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,numpy,string,damask
from optparse import OptionParser, Option

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,string,numpy,DAMASK
from optparse import OptionParser, Option

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,string,numpy,damask
from optparse import OptionParser, Option

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,string,damask
from optparse import OptionParser, Option

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,string,numpy,damask
from optparse import OptionParser, Option

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,numpy,string,damask
from optparse import OptionParser, Option

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,string,damask
from optparse import OptionParser, Option

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,numpy,string,damask
from optparse import OptionParser, Option

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,string,numpy,damask
from optparse import OptionParser, Option

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
def write_gsmh(RGB_vector,name):

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
import math

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
import math, convert_colormodels

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os,re,sys,math,numpy,string
from optparse import OptionParser, Option