E
E
eegmak2021-06-05 21:11:38
Python
eegmak, 2021-06-05 21:11:38

Is it possible to bring the script with imports to one file?

Are there solutions that will take all dependencies from imports and create a single python file?
Are there any prerequisites that make this task impossible, and the only possible solution is to use a separate file for each import (for example, name conflicts between the imported module and the script where it is imported)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danil Samodurov, 2021-06-06
@samodurOFF

I don't know about the existence of such solutions, but why don't you create such a solution yourself. Files with the .py extension can also be read from python itself. Create a script that will open the .py files you need, read them, find the functions you need, and write them into a single .py file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question