Skip to content

Commit

Permalink
Change how we're using the "sh" module to be compatible with PyInstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdee committed Feb 10, 2015
1 parent 1eeedfe commit fb096c9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions calicoctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,21 @@
from subprocess import call, check_output, CalledProcessError
import os
from docopt import docopt
from sh import mkdir
from sh import docker
from sh import modprobe
from sh import grep
import etcd
import sys
import socket
import json
import uuid
from collections import namedtuple
import sh

mkdir = sh.Command._create('mkdir')
docker = sh.Command._create('docker')
modprobe = sh.Command._create('modprobe')
grep = sh.Command._create('grep')

mkdir_p = mkdir.bake('-p')

hostname = socket.gethostname()

# etcd paths for Calico
Expand Down

0 comments on commit fb096c9

Please sign in to comment.