Opened 15 years ago

Closed 14 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 15 years ago.
modified deluge.ui.console.main

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by greeklegend

modified deluge.ui.console.main

comment:1 Changed 15 years ago by greeklegend

  • Component changed from other to null
  • Owner changed from andar to sadrul

comment:2 Changed 14 years ago by damoxc

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.