Opened 10 months ago

Closed 6 months ago

#3075 closed bug (Fixed)

config command not handling windows paths

Reported by: Cas Owned by:
Priority: minor Milestone: 1.3.16
Component: Console UI Version: 1.3-stable (git)
Keywords: Cc:

Description

console config commmand is not handling windows paths (C:\)

"C:/Program Files/Deluge/deluge-console.exe" config --set move_completed_path C:/Users/user/Download
[ERROR   ] 22:58:55 main:347 malformed expression (C)
Traceback (most recent call last):
  File "deluge\ui\console\main.py", line 344, in do_command
  File "deluge\ui\console\commands\config.py", line 102, in handle
  File "deluge\ui\console\commands\config.py", line 136, in _set_config
  File "deluge\ui\console\commands\config.py", line 85, in simple_eval
  File "deluge\ui\console\commands\config.py", line 77, in atom
SyntaxError: malformed expression (C)

Change History (2)

comment:1 Changed 10 months ago by Cas

The workaround for now is to substitute C:/ for / as Deluge will treat them the same on Windows.

So C:/Users/user/Download == /Users/user/Download

comment:2 Changed 6 months ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed

Fixed: [b8e5ebe82]

Note: See TracTickets for help on using tickets.