Skip to content

Commit

Permalink
Merge pull request #55 from thefinn93/search-path-for-grgsm
Browse files Browse the repository at this point in the history
Use distutils.spawn.find_executable to find grgsm_scanner
  • Loading branch information
Oros42 authored Aug 2, 2018
2 parents 87ec590 + 7cc1a74 commit 502ff32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scan-and-livemon
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ import imp
from optparse import OptionParser
import subprocess
import sys
import distutils.spawn

def find_gsm_bases():
scanner = imp.load_source('scanner', '/usr/bin/grgsm_scanner')
grgsm_scanner_path = distutils.spawn.find_executable("grgsm_scanner")
scanner = imp.load_source('scanner', grgsm_scanner_path)
sys.modules['scanner'] = scanner
(options, args) = scanner.argument_parser().parse_args()
list = scanner.do_scan(options.samp_rate, options.band, options.speed,
Expand Down

0 comments on commit 502ff32

Please sign in to comment.