Skip to content

Instantly share code, notes, and snippets.

@frivas
Created May 2, 2019 16:26
Show Gist options
  • Save frivas/3af474f0eec00ee8d55bd9b6f7aa6c98 to your computer and use it in GitHub Desktop.
Save frivas/3af474f0eec00ee8d55bd9b6f7aa6c98 to your computer and use it in GitHub Desktop.
Prepare Tools
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