I've a strange problem (or maybe two; not sure if they're related or
not):

When I start Spyder (by clicking on the button in the Python(x,y)
applet), if I have a file called "pyspacewar.py" in my working
directory, that file seems to get run when Spyder starts.  I didn't
intend this but somehow it started happening.  Why is this going on?

I poked around trying to figure it out, and found the file C:\Users
\Dave\.spyder2\.spyder.ini; in there I found a [run] section that
might (I'm just guessing) be causing this:

[run]
history = 20
breakpoints/enabled = True
configurations = [(u'E:\\Users\\Dave\\Documents\\My Data\\My code\
\Python\\pyspacewar.py', {'current': False, 'workdir': u'E:\\Users\
\Dave\\Documents\\My Data\\My code\\Python', 'python_args': u'',
'workdir/enabled': True, 'interact': False, 'args': u'', 'args/
enabled': False, 'python_args/enabled': False}), (u'C:\\Users\\Dave\
\.spyder2\\.temp.py', {'current': False, 'workdir': u'C:\\Users\\Dave\
\.spyder2', 'python_args': u'', 'workdir/enabled': True, 'interact':
False, 'args': u'', 'args/enabled': False, 'python_args/enabled':
False}), (u'E:\\Users\\Dave\\Documents\\My Data\\My code\\Python\
\3body.py', {'current': False, 'workdir': u'E:\\Users\\Dave\\Documents\
\My Data\\My code\\Python', 'python_args': u'', 'workdir/enabled':
True, 'interact': False, 'args': u'', 'args/enabled': False,
'python_args/enabled': False}), (u'E:\\Users\\Dave\\Documents\\My Data\
\My code\\Python\\planet1.py', {'current': False, 'workdir': u'E:\
\Users\\Dave\\Documents\\My Data\\My code\\Python', 'python_args':
u'', 'workdir/enabled': True, 'interact': False, 'args': u'', 'args/
enabled': False, 'python_args/enabled': False})]
breakpoints = {}

Is this indeed the cause?  If so, how did it get this way, and how do
I fix it (other than just editing the .ini file)?  Is there some other
startup file that might be causing this?  Where should I look?

The seemingly related problem - when I'm editing a source file and I
type "toc()" into the editor (without quotes), as soon as I type the
opening paren '(', my program starts running.  It seems that Spyder is
trying to launch a code analysis tool ('rope'?), but somehow my own
half-written program starts running.

I've tried rebooting the machine (Win7 x64) and uninstalling and re-
installing the whole Pythong(x,y) distribution, including Spyder - the
problem persists.

I'm a complete newbie to Spyder and Python.  What am I doing wrong
here?

I can post the source code I was editing if that will help.  (I do
have a function called "toc()" defined; it's similar to MATLAB's toc.)

--Dave

-- 
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