def __stickytape_write_module(path, contents):
    import os, os.path

    def make_package(path):
        parts = path.split('/')
        partial_path = __stickytape_working_dir
        for part in parts:
            partial_path = os.path.join(partial_path, part)
            if (not os.path.exists(partial_path)):
                os.mkdir(partial_path)
                with open(os.path.join(partial_path, '__init__.py'), 'wb') as f:
                    f.write(b'\n')
    make_package(os.path.dirname(path))
    full_path = os.path.join(__stickytape_working_dir, path)
    with open(full_path, 'wb') as module_file:
        module_file.write(contents)
def __stickytape_write_module(path, contents):
    import os, os.path

    def make_package(path):
        parts = path.split('/')
        partial_path = __stickytape_working_dir
        for part in parts:
            partial_path = os.path.join(partial_path, part)
            if (not os.path.exists(partial_path)):
                os.mkdir(partial_path)
                with open(os.path.join(partial_path, '__init__.py'), 'wb') as f:
                    f.write(b'\n')
    make_package(os.path.dirname(path))
    full_path = os.path.join(__stickytape_working_dir, path)
    with open(full_path, 'wb') as module_file:
        module_file.write(contents)