Skip to content

Commit

Permalink
Fix path crash in QR code generation on Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
freQniK committed Jul 30, 2024
1 parent 85161be commit a9ab182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/qr.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def generate_qr_code(self, ADDRESS):
DepositCoin = CoinsList.coins[2]
DepositAddress = ADDRESS

coinLogo = self.MeileConfig.resource_path('../utils/coinimg/' + DepositCoin + '.png')
coinLogo = self.MeileConfig.resource_path('utils/coinimg/' + DepositCoin + '.png')
logo = Image.open(coinLogo)
basewidth = 100

Expand Down Expand Up @@ -63,7 +63,7 @@ def generate_qr_code(self, ADDRESS):

background = Image.new('RGBA', (QRimg.size[0], QRimg.size[1] + 15), (255,255,255,255))
#robotoFont = ImageFont.truetype(pkg_resources.resource_filename(__name__, os.path.join('fonts', 'Roboto-BoldItalic.ttf')), fontSize)
robotoFont = ImageFont.truetype(self.MeileConfig.resource_path('../utils/fonts/Roboto-BoldItalic.ttf'), fontSize)
robotoFont = ImageFont.truetype(self.MeileConfig.resource_path('utils/fonts/Roboto-BoldItalic.ttf'), fontSize)

draw = ImageDraw.Draw(background)

Expand Down

0 comments on commit a9ab182

Please sign in to comment.