kbatsuren / wiktra

Wiktra - Python tool of Wiktionary Transliteration modules for 514 languages and its 102 different scripts (orthographies)
GNU General Public License v2.0
27 stars 5 forks source link

Missing wikt.mw — another take #3

Closed twardoch closed 3 years ago

twardoch commented 3 years ago

A simpler way to solve the missing wikt.mw problem would be to add

import os
os.chdir(os.path.dirname(__file__))

at the beginning of Wiktra.py

kbatsuren commented 3 years ago

I am sorry for the horrible late reply.

Thank you very much for the code, and I am afraid it is not working. The problem is that Wiktra.py sends its code into Lupa as it compiles the code and trying to find wikt.mw file. Now it is like I need to write a Lupa code to find the correct directory of the files. Do you have any other solution?

twardoch commented 3 years ago

I think you may have made some improvements?

I just forked and installed wiktra, and it worked fine.

twardoch commented 3 years ago

I opened a small PR that addresses another problem I found. https://github.com/kbatsuren/wiktra/pull/4?w=1