MegaBag/__init__.py

51 lines
2.2 KiB
Python

#!/usr/bin/env python -------------------------------- -*- coding: utf-8 -*-#
# 2023 3DMish <Mish7913@gmail.com> #
# ----- ##### BEGIN GPL LICENSE BLOCK ##### ----- #
# #
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public License #
# as published by the Free Software Foundation; either version 2 #
# of the License, or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# ----- ##### END GPL LICENSE BLOCK ##### ----- #
import os, sys;
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + "/data/");
from bpy_sys import ver_less, data_path;
if ver_less(2,65,0): sys.path.insert(0, data_path + "/p2_50/");
elif ver_less(2,80,0): sys.path.insert(0, data_path + "/p2_79/");
else: sys.path.insert(0, data_path + "/p2_80/");
import m7a_props, m7a_area, m7a_image_editor;
bl_info = {
"name": "MegaBag v0.3.0-Alpha",
"category": "3DMish",
"author": "3DMish (Mish7913)",
"version": (0, 3, "0-Alpha-2023.09.11-13.01"),
"blender": (3, 4, 1),
"wiki_url": "https://projects.blender.org/3DMish/MegaBag/wiki",
"warning": "It's an alpha version, can be a bugs in here.",
"description": "MegaBag - it's a mega pack of different stuff...",
} # date +%Y.%m.%d-%H.%M
def register():
m7a_props.register();
m7a_area.register();
m7a_image_editor.register();
def unregister():
m7a_props.unregister();
m7a_area.unregister();
m7a_image_editor.unregister();
if __name__ == "__main__": register();