Skip to content

Commit

Permalink
Crawl config would previously be written but not launched, as Heritri…
Browse files Browse the repository at this point in the history
…x process might not have been running. This ensures that it is prior to calling phantomjs.
  • Loading branch information
machawk1 committed Apr 16, 2013
1 parent 92445d4 commit 717565a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions MacOSX/WAIL.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ def __init__(self, parent):

self.fix_heritrix.Bind(wx.EVT_BUTTON, Heritrix().fix)
self.fix_wayback.Bind(wx.EVT_BUTTON, Wayback().fix)

self.fix_tomcat.Bind(wx.EVT_BUTTON, Wayback().fix)

#wx.CallLater(2000, self.updateServiceStatuses)
self.updateServiceStatuses()
def getHeritrixVersion(self, abbr=True):
Expand Down Expand Up @@ -494,7 +495,10 @@ def crawlURIsListed(self, evt):
self.hJob = HeritrixJob(uris)
self.hJob.write()
self.populateListboxWithJobs()


if not Heritrix().accessible():
mainAppWindow.basicConfig.launchHeritrix()

cmd = phantomJSExecPath + " --ignore-ssl-errors=true "+phantomJSPath + "buildJob.js " + uri_heritrixJob + self.hJob.jobNumber
ret = subprocess.Popen(cmd, shell=True)
time.sleep(3)
Expand Down

0 comments on commit 717565a

Please sign in to comment.