Is it possible to create an executable from a specified amount of code in a script?
For example:
JavaScript
x
15
15
1
#some code up here to set some things up
2
3
def oneFunction(param):
4
#does something here as well
5
6
def run():
7
varaible1 = input()
8
oneFunction(variable1)
9
#more code after this
10
11
if something == True:
12
#some code to create executable from the run function
13
else:
14
#do something else
15
Advertisement
Answer
You can use cx_freeze to create an executable from your py file.
https://cx-freeze.readthedocs.io/en/latest/overview.html