Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if foo:
- data = read_data_from_somewhere()
- else:
- data = open("foo.pyc", 'rb').read()
- code = bytes_to_code(data)
- # call a method from the loaded code
- code.call_method()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement