What's the most efficient and robust method to do this?
Here are my thoughts:
Take the .py file and create a function inside it called def get_code() and return the entire pasted contents (minus the get_code() function)
Code: Select all
def get_code(): # would be placed at end of file
code = "the entire content of the file above def_code()\n
blah blah blah"
return code
Code: Select all
def get_code(): # would be placed at end of file
code = "the entire content of the file above def_code()\n
but compressed"
return uzlib.decompress(code)