Commit e31d5c11 authored by eric pellegrini's avatar eric pellegrini

fixed long-term dmg corruption due to invalid dmg python

parent aabcb85d
Pipeline #1721 passed with stages
in 11 minutes and 25 seconds
......@@ -63,6 +63,10 @@ hdiutil unmount /Volumes/MDANSE -force -quiet
sleep 5
cp /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python dist/MDANSE.app/Contents/MacOS/python
install_name_tool -change /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/#Versions/2.7/Python @executable_path/../Frameworks/Python.framework/Versions/2.7/Python #dist/MDANSE.app/Contents/MacOS/python
../Tools/create-dmg/create-dmg --background "../Resources/background.jpg" --volname "MDANSE" --window-pos 200 120 --window-size 800 400 --icon MDANSE.app 200 190 --hide-extension MDANSE.app --app-drop-link 600 185 "${MDANSE_DMG}" ./dist
exit
......@@ -118,9 +118,9 @@ class JobPlugin(ComponentPlugin):
startupinfo.wShowWindow = subprocess.SW_HIDE
else:
startupinfo = None
subprocess.Popen([sys.executable, filename], startupinfo=startupinfo, stdin=subprocess.PIPE,stdout=subprocess.PIPE, stderr=subprocess.PIPE)
subprocess.check_output([sys.executable, filename],stderr=subprocess.STDOUT)
time.sleep(1)
PUBLISHER.sendMessage("msg_start_job",message=None)
......@@ -190,4 +190,4 @@ if __name__ == "__main__":
app = wx.App(False)
f = JobFrame(None,'dacf',filename)
f.Show()
app.MainLoop()
\ No newline at end of file
app.MainLoop()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment