Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Relative path in salt_utils
Browse files Browse the repository at this point in the history
Make the sys.path in salt_utils relative to the location of the file.
This makes it possible to run from any location.
  • Loading branch information
mattmb committed Apr 14, 2015
1 parent d0d5b36 commit b8a2355
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bootstrap_cfn/salt_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env python
import sys
sys.path.append('/usr/local/bootstrap-cfn')
import os
#We adjust the path here so that this script can be run
#by a user without changing their PYTHONPATH, useful if they
#have limited sudo access to run the script.
sys.path.append(os.path.dirname(__file__) + '/..')
from bootstrap_cfn import utils
from bootstrap_cfn import errors
import salt
Expand Down

0 comments on commit b8a2355

Please sign in to comment.