blob: 4aa5f49b6fa191a6ac9cddc9eb2adc4a2f26b1cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import os
def create_script_from_embedded(ctx, filename=None, embedded=None):
files_create_from_embedded_with_other_name = globals()[
"files_create_from_embedded_with_other_name"
]
# Create the file.
files_create_from_embedded_with_other_name(
ctx, filename_on_disk=filename, embedded_file=embedded
)
# Make the new file executable.
os.chmod(filename, 0o755)
|