summarylogtreecommitdiffstats
path: root/screenshot_to_homedir.patch
blob: cd6a12b69cc2e8110f349cdaca6ec3c5230aa828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --color -aur src.orig/funnyboat/game.py src/funnyboat/game.py
--- src.orig/funnyboat/game.py	2021-10-16 23:01:03.166957782 +0200
+++ src/funnyboat/game.py	2021-10-16 23:07:37.429335490 +0200
@@ -245,10 +245,10 @@
 
     def take_screenshot(self):
         i = 1
-        filename = "sshot.tga"
+        filename = os.path.join(os.path.expanduser("~"), "sshot.tga")
         while os.path.exists(filename):
             i += 1
-            filename = "sshot" + str(i) + ".tga"
+            filename = os.path.join(os.path.expanduser("~"), "sshot%s.tga" % i)
         
         pygame.image.save(self.screen, filename)
         print "Screenshot saved as " + filename
Only in src: screenshot_to_homedir.patch