blob: 6aa435a670eddc1065737846c6558f4e2cca3ea0 (
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_filename=embedded
)
# Make the new file executable.
os.chmod(filename, 0o755)
|