0

Is it possible to create an executable from a specified amount of code in a script?

For example:

#some code up here to set some things up

def oneFunction(param):
    #does something here as well

def run():
    varaible1 = input()
    oneFunction(variable1)
    #more code after this

if something == True:
    #some code to create executable from the run function
else:
    #do something else

1 Answer 1

1

You can use cx_freeze to create an executable from your py file.
https://cx-freeze.readthedocs.io/en/latest/overview.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.