Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrnt committed Dec 4, 2013
2 parents 2444c68 + 9d70a5f commit 4a90579
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions notevelocity/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ def saveFile(self, mode):
else:
return 1
else:
saveLocation = self.textFrame.fileName[:-4] + "rewrite"

fileNameMinusNote = self.textFrame.fileName.split(".")[:-1]
saveLocation = ".".join(fileNameMinusNote) + ".rewrite"
fileToSave = open(saveLocation, "w+")

textContents = self.textFrame.rewriteBox.get("1.0", "end")
Expand Down Expand Up @@ -321,7 +321,8 @@ def openFile(self):
print("Opened file from " + openLocation)
self.log.write("Opened file from " + openLocation)

rewriteLocation = openLocation[:-4] + "rewrite"
fileNameMinusNote = openLocation.split(".")[:-1]
rewriteLocation = ".".join(fileNameMinusNote) + ".rewrite"

if path.isfile(rewriteLocation):
rewriteFile = open(rewriteLocation, "r")
Expand Down

0 comments on commit 4a90579

Please sign in to comment.