diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2022-01-01 12:03:51 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2022-01-01 14:05:30 +0000 |
commit | 95b3d27d27a8dab7cb8a5136000a2331ab9b4a4a (patch) | |
tree | 632bb651f7bb70152bacfcccc268ccffd5e64c0d /tests/subplots/python/runcmd_test.py | |
parent | d4856f7b04b5f58118e518fd2a3413363dcad6ce (diff) | |
download | subplot-95b3d27d27a8dab7cb8a5136000a2331ab9b4a4a.tar.gz |
tests: Move files.md to be common between Python and subplotlib
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'tests/subplots/python/runcmd_test.py')
-rw-r--r-- | tests/subplots/python/runcmd_test.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/subplots/python/runcmd_test.py b/tests/subplots/python/runcmd_test.py new file mode 100644 index 0000000..4aa5f49 --- /dev/null +++ b/tests/subplots/python/runcmd_test.py @@ -0,0 +1,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) |