So Im working on an add-on and I have to write it out in multiple python codes because having it in one will literally be over 60k lines bordering on 160 or more, but since I’m new to coding, how do I link all these python files together so they will immediately work as one once zipped, a begginer level answer please, im not an advanced person in python at all
Hello,
Could you add a little more information about how your script works ? I think the n° 1 thing to look out for is circular dependencies (module A referencing module B referencing module A) which is not possible in python.
Distributing a 60k lines script is not inherently bad if it does work, it will just be a nightmare for the developer to work on it afterwards.
2 Likes
You may find this tutorial helpful:
By Nikita 20.11.2016
1 Like
It sounds like you’re creating a nightmare rather than an addon.
As for the question, addons should be structured like a Python module meaning its local file imports should be relative.
For example:
import bpy
import numpy as np
from . import addonfile
from .addonfile import afunction
3 Likes