I have for example a file /path/to/test_file with tags tag1 and tag2. I know how to get the tags from the sqlite database, but I don't know how to connect and write to the TMSU database. Or should I execute a subprocess to do this like subprocess.checkout(["tmsu", "tag", file, *tag_list])?
I have for example a file
/path/to/test_file
with tagstag1
andtag2
. I know how to get the tags from the sqlite database, but I don't know how to connect and write to the TMSU database. Or should I execute a subprocess to do this likesubprocess.checkout(["tmsu", "tag", file, *tag_list])
?