Skip to content

Commit

Permalink
Add the hpccm directory to the python module search path when using t…
Browse files Browse the repository at this point in the history
…he wrapper script (#282)
  • Loading branch information
samcmill authored Jul 10, 2020
1 parent 785f9ed commit 37319a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hpccm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# add the path where this script resides to the search path for python modules
wd=$(readlink -e $(dirname $0))
export PYTHONPATH=${wd}:$PYTHONPATH

python3 -m hpccm.cli $*

0 comments on commit 37319a0

Please sign in to comment.