Skip to content

Commit

Permalink
calls just moa.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Nov 12, 2012
1 parent 7d1f42b commit 7f08e8f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions moa/cli/moainit.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env python
"""Return the path to the moa environment initializiation
"""Returns the path to the bash environment initializiation
script. Should be called as:
. `moainit`
. $(moainit)
Note - this works for Bash.
"""

import pkg_resources
Expand All @@ -14,7 +15,7 @@ def moainit():
#get the moa.sh script
moash = pkg_resources.resource_filename(
'moa', 'data/etc/profile.d/moa.sh')
print moash
print '%s' % (moash)


if __name__ == '__main__':
Expand Down

0 comments on commit 7f08e8f

Please sign in to comment.