What Tim said :-)

But if you really want to import from a python script, the code would look something like this:

from mnemosyne.script import Mnemosyne

# 'data_dir = None' will use the default system location, edit as appropriate.
data_dir = None
mnemosyne = Mnemosyne(data_dir)

for format in self.mnemosyne.component_manager.all("file_format"):
  if format.__class__.__name__ == "Mnemosyne2Cards":
    format.do_import(filename)

mnemosyne.finalise()

Peter

On 09/20/2012 01:54 AM, Timothy Bourke wrote:
On Sep 19 at 10:55 -0700, szymon wrote:
I use Mnemosyne 2. I would like to add 10 cards from a txt file to my
base daily and assign a tag to them. "Autoimport".

Is it possible to write a similar script/plugin in Python or PHP?

Yes. But why would you want to?

Why not just import/create them straight away? I often add hundreds of
new cards that stay unreviewed for months, while I only learn 10-20
new cards a day.

Tim.

--
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to