image-index-py/main.py
2022-11-12 21:35:50 +01:00

23 lines
545 B
Python
Executable file

#!/bin/python3
import sys,os
os.chdir("ii-py")
from func import *
from vars import *
def main():
if len(sys.argv) > 1:
for i in sys.argv:
print("Arg:" + i)
#tb.add_index("/home/marcel/Downloads/froggy.jpg","Tiere","Fifel","https://youtu.be","Tier,Meme_template","Ein sitzender Frosch. Ist er nicht süß?")
tb.search_index()
if __name__ == "__main__":
filepath=CONFIG_DIR + '/index.db'
tb = filestable(filepath)
mtb = metatable(filepath)
main()
print("Stopping")
tb.connection.close()