blob: 968337a09d744733336862e24a36428a4deee803 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
sourcedir = 'V:\\\\cvs\\qwtplot3d\\'
stext=""$(QTDIR)"\\bin\\"
rtext="$(QTDIR)\\bin\\"
import os, string, sys
from os.path import join, getsize
for root, dirs, files in os.walk(sourcedir):
for name in files:
if '.vcproj' in name:
f = file(join(root,name),'r')
s = f.read()
f.close()
ss = string.replace(s,stext,rtext)
f = file(join(root,name),'w+')
f.write(ss);
f.close();
|