Topic "Extra file is opened when using IDLE Python editor"

Author Message
kenatsun
[View user's profile]

Joined: 2009-01-08
Posts: 3
As a newcomer to your wonderful tool, I'm hoping you can help with this odd problem.

I have the Python language editor called IDLE configured in WinSCP to open files with extension *.py. Every time I open a .py file from WinSCP, it opens a second IDLE window with no contents and a filepath shown in the title bar as "C:\Documents and Settings\Ken\%1". Closing this extra window does not seem to prevent me from saving changes in the real .py file back to the server. However, each time I save, WinSCP reopens that extra window again.

Changing the WinSCP "External Editor Options" for this editor doesn't seem to change this behavior. Is there a way to prevent WinSCP from opening this extra window?

~ TIA
~ Ken

Version = 4.1.8 (build 415)
Interface = Explorer
Session protocol = SSH-2
SSH implementation = OpenSSH_4.5p1 FreeBSD-20061110
Encryption algorithm = aes
Compression = No
File transfer protocol = SFTP-3
------------------------------------------------------------
Server host key fingerprint
ssh-dss 1024 b3:00:46:ed:1a:f7:9b:a2:6f:0d:5c:a4:e9:e3:03:6f
------------------------------------------------------------
Can change permissions = Yes
Can change owner/group = No
Can execute arbitrary command = No
Can create symlink/hardlink = Yes/No
Can lookup user groups = No
Can duplicate remote files = No
Can check available space = No
Can calculate file checksum = No
Native text (ASCII) mode transfers = No
------------------------------------------------------------
Additional information
The server does not support any SFTP extension.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
I'll test it and let you now.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
I does not happen to me. How did you specify executable for IDLE in WinSCP editor preferences?
_________________
Martin Prikryl
kenatsun
[View user's profile]

Joined: 2009-01-08
Posts: 3
Aha. I think I see my mistake. I configured this editor into WinSCP by just copying the command from my Windows Explorer "file types" list. It looked like this:

Code:
C:\Python24\pythonw.exe "C:\Python24\Lib\idlelib\idle.pyw" -n -e "%1" !.!

After trying a few things, the entry for IDLE that seems to work is:

Code:
C:\Python24\pythonw.exe "C:\Python24\Lib\idlelib\idle.pyw" -n  !.!


~ Thanks for your help!
~ Ken
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License