Skip to content

Commit

Permalink
fix(sam-translate.py): add samtranslator to path (#2875)
Browse files Browse the repository at this point in the history
Co-authored-by: _sam <3804518+aahung@users.noreply.github.com>
  • Loading branch information
hoffa and aahung authored Feb 8, 2023
1 parent afc68ac commit aff1d85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/sam-translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import argparse
import json
import logging
import os
import platform
import subprocess
import sys
Expand All @@ -15,6 +16,10 @@

import boto3

# To allow this script to be executed from other directories
my_path = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, my_path + "/..")

from samtranslator.model.exceptions import InvalidDocumentException
from samtranslator.public.translator import ManagedPolicyLoader
from samtranslator.translator.transform import transform
Expand Down

0 comments on commit aff1d85

Please sign in to comment.