From 97a6a6924d0145a670684f373a3832975720dfc6 Mon Sep 17 00:00:00 2001 From: Tobi Sim Date: Sat, 21 Feb 2015 16:09:22 +0100 Subject: [PATCH] more issues with renaming --- renamep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renamep.py b/renamep.py index efbddcb..40ce95d 100755 --- a/renamep.py +++ b/renamep.py @@ -19,7 +19,7 @@ def replaceInFile(oldname,newname,filename): maketxt=makefile.read() makefile.close() makefile=open(filename,"w") - makefile.write(re.sub("Appname:="+oldname,"Appname:="+newname,maketxt)) + makefile.write(re.sub(oldname,newname,maketxt)) makefile.close() for filename in ["./Makefile","./dat/"+newname+".desktop"]: