Created
May 2, 2019 16:26
-
-
Save frivas/3af474f0eec00ee8d55bd9b6f7aa6c98 to your computer and use it in GitHub Desktop.
Prepare Tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def prepareTools(): | |
exists = os.path.isfile('/tmp/sox') | |
if not exists: | |
logger.info('FILE DOES NOT EXISTS') | |
cp_cmd_output = subprocess.run([f"cp {os.environ['LAMBDA_TASK_ROOT']}/audio/sox /tmp; chmod 755 /tmp/sox"], shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE) | |
logger.info(f"CP {cp_cmd_output}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment