espanso, text expander with python

Viewed 19

I used this app for windows before and I moved to macOS but with the same setting I've some errors and I can't fix this

This is my code

when I run this in vs code it's running normally not include " or ' symbol but when I running in other with espanso

this is the result

from datetime import *

months = ["Unknown",
          "Januari",
          "Febuari",
          "Maret",
          "April",
          "Mei",
          "Juni",
          "Juli",
          "Agustus",
          "September",
          "Oktober",
          "November",
          "Desember"]

days =  {
        0: "Senin",
        1: "Selasa",
        2: "Rabu",
        3: "Kamis",
        4: "Jumat",
        5: "Sabtu",
        6: "Minggu",
        }
weekday = date.today().weekday()
saat_ini = datetime.now()
now = (datetime.now())
year = (now.year)
month = (months[now.month])
tgl = saat_ini.strftime('%d' )
thn = saat_ini.strftime('%Y' )
print (days[weekday],tgl,month,thn)

anyone can help me to fix this

0 Answers
Related