sK1

sK1 crashes "pydoc modules" command

Bug #409098 reported by Tener
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sK1
Fix Committed
Undecided
Unassigned

Bug Description

sK1's __init__.py module starts application after importing. It should have checked if __name__ equals '__main__' and start app only if that is the case. Because it doesn't do that commands like "pydoc modules" or python's builtin help('modules') break: sK1 kills those programs.

It's easy to fix that. See attachment for correct version of __init__.py

See also blog post:
http://mostlycode.wordpress.com/2009/08/04/modules-that-block-pythons-help/

Revision history for this message
Tener (gtener) wrote :
description: updated
Revision history for this message
Tener (gtener) wrote :

Turns out /usr/bin/sk1 also needs to be updated.

Revision history for this message
igor.e.novikov (igor-e-novikov) wrote :

I think this bug can be closed :) Two days ago we have implemented similar changes. Try using sK1 trunk version.

max (maxim-s-barabash)
Changed in sk1:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.