Fix saving android strings
guix.scm
| 189 | 189 | (method git-fetch) | |
| 190 | 190 | (uri (git-reference | |
| 191 | 191 | (url "https://framagit.org/tyreunom/python-android-strings-lib") | |
| 192 | - | (commit "92d15a9a31a0d3184be01ce433ec74c2f426dc01"))) | |
| 192 | + | (commit "a105ce50c5d67a2ada3be1c00ae530cde5c433c9"))) | |
| 193 | 193 | (file-name (git-file-name name version)) | |
| 194 | 194 | (sha256 | |
| 195 | 195 | (base32 | |
| 196 | - | "0q41vnh5q5phy36vnpfb8pr3zg9brwg2vqq72x2d8jh7yrdyrgdj")))) | |
| 196 | + | "10kadzd91sl5mwpam193h777i6fhafc8v6bp6s0j92pg2kd775vl")))) | |
| 197 | 197 | (build-system python-build-system) | |
| 198 | 198 | (arguments | |
| 199 | 199 | `(#:tests? #f)) |
offlate/formats/appstore.py
| 43 | 43 | ||
| 44 | 44 | def save(self): | |
| 45 | 45 | for r in self.resources: | |
| 46 | + | # create parent directory if it doesn't exist yet. | |
| 47 | + | Path(r.filename).parent.mkdir(parents=True, exist_ok=True) | |
| 46 | 48 | with open(r.filename, 'w') as f: | |
| 47 | 49 | f.write(r.tr) | |
| 48 | 50 |