loader.py 488 Bytes
Newer Older
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
"""
    Loader

    import modules from zip files that are stored in ./libs/ directory

    author: Steve Göring
    contact: stg7@gmx.de
    2014
"""

import os
import sys

for m in filter(lambda x: ".zip" in x, os.listdir(os.path.dirname(os.path.realpath(__file__)) + "/libs")):
    sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + "/libs/" + m)

sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + "/libs/")