Answer the question
In order to leave comments, you need to log in
Pack python?
Roughly speaking, I need to package python.
There is a script that uses the functions and classes of different modules, it is necessary that all dependencies are pulled into the main script.
For example:
# [main.py]
import a
def main(*args):
print(b.hello)
# [a.py]
import b
def abc(*args):
return b.somefunc(*args) + 'Hello'
hello = abc(b.c.d)
# [b.py]
import c
def somefunc(*args):
...
# [c.py]
d = 123
# [joined_main.py]
def main(*args):
print(a_join_hello)
def a_join_abc(*args):
return b_join_somefunc(*args) + 'Hello'
a_join_hello = a_join_abc(b.c.d)
def b_join_somefunc(*args):
...
b_join_c_join_d = 123
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question