Opened 16 years ago

Closed 16 years ago

#897 closed bug (Fixed)

Command line interface broken in binary distribution [fix included]

Reported by: greeklegend Owned by: sadrul
Priority: minor Milestone:
Component: null Version: 1.1.6
Keywords: console command line Cc:

Description

Problem: I'm on windows, so i downloaded the binary-only distribution of 1.1.6. It contains only .pyc bytecode files, no .py files. However, the command line interface is only searching for commands in the \commands folder with an extention of .py This is fixed by changing the function load_commands() in deluge\ui\console\main.py. I'll attach it. Basically, I just changed the constraints on what filenames will be added to the list of valid commands to allow .pyc files and removed the assumption that removing the last 3 characters from the filename removes the entire extention, including the .

Sorry I don't know how to use svn or anything, excuse and ignore me if this has already been fixed :)

Also, the console output looks horrible on windows (lots of random symbols). I assume this is because it's expecting readline, which interprets these properly?

Attachments (1)

main.py (7.6 KB ) - added by greeklegend 16 years ago.
modified deluge.ui.console.main

Download all attachments as: .zip

Change History (3)

by greeklegend, 16 years ago

Attachment: main.py added

modified deluge.ui.console.main

comment:1 by greeklegend, 16 years ago

Component: othernull
Owner: changed from andar to sadrul

comment:2 by Damien Churchill, 16 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.