Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

http://docs.python.org/library/os.path.html

Joint path and name

Code Block

        path_name = os.path.join(path,fname)

Useful string parsing options

...

Code Block
    par_str = line[pos_eq+1:].strip(' ').rstrip('\n')

Replace the part of the string

Code Block

 my_string.replace("abcde","cde")

Python - useful references

...