Differences between revisions 2 and 3
Revision 2 as of 2008-04-15 12:23:13
Size: 403
Editor: anonymous
Comment:
Revision 3 as of 2008-04-15 15:56:52
Size: 453
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
SiaProgrammingPython


<<TableOfContents(2)>>

SiaProgrammingPython

I/O

Interaction with the operating system

Module sys

Module os

   1 #!/usr/bin/env python
   2 import os,glob
   3 
   4 filelist=glob.glob('*.pdf')
   5 for f in filelist:
   6     psfilename=f.split('.')[0]+'.ps'
   7     cmd='pdftops '+f+' '+psfilename
   8     print cmd
   9     os.system(cmd)

LehreWiki: SiaProgrammingPythonSystem (last edited 2008-04-21 12:09:59 by anonymous)