3 # this script will rename all the xcode oli.pbxuser
4 # user settings to yourosxusername.pbxuser to provide
5 # the default debugging setup for Xcode 3
7 import os
, getpass
, glob
, shutil
9 path
= os
.path
.dirname(os
.path
.realpath(__file__
))
10 username
= getpass
.getuser()
12 for r
,d
,f
in os
.walk(path
):
14 if files
.endswith(".pbxuser"):
15 noext
= os
.path
.splitext(files
)[0]
17 shutil
.copy(os
.path
.join(r
, files
), os
.path
.join(r
, username
+ ".pbxuser"))