Hi,

I managed to make a dock-icon / app for Mac osx using the instructions
for IPython at http://neuroscience.telenczuk.pl/?p=400

Basically:

Create a directory Spyder.app
Create a subdir "Contents"

In "Contents" create a Info.plist containing:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleIconFile</key>
    <string>spyder</string>
</dict>
</plist>

Create two directories in "Content": "MacOS" and "Resources"

In MacOS put the startup file (not sure the PYTHONPATH stuff is needed
really):

#! /opt/local/bin/python

import os
executable = '/opt/local/bin/spyder'
arguments = [executable]
os.environ["PYTHONPATH"]=os.getenv("PYTHONPATH", "")
os.execve(executable, arguments, os.environ)

In Resources dir, create an icon using XCode and iconcomposer.

With this spyder can be launched as an app, and made to stay in the
dock.

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/spyderlib?hl=en.

Reply via email to