File: fixvc7.py

package info (click to toggle)
qwtplot3d 0.2.7%2Bsvn191-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,212 kB
  • ctags: 1,791
  • sloc: cpp: 8,911; ansic: 5,078; sh: 169; python: 95; makefile: 55
file content (16 lines) | stat: -rw-r--r-- 480 bytes parent folder | download | duplicates (5)
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();