Size: 403
Editor: anonymous
|
Size: 453
Editor: anonymous
|
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
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)