Skip to content

Commit

Permalink
moainit code - returns location of the moa.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Nov 5, 2012
1 parent cf076be commit dc4080c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions moa/cli/moainit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env python

import os
import pkg_resources
import subprocess as sp


def moainit():

#get the moa.sh script
moash = pkg_resources.resource_filename(
'moa', 'data/etc/profile.d/moa.sh')
print moash

if __name__ == '__main__':
moainit()

0 comments on commit dc4080c

Please sign in to comment.