Fix open_cmd and misleading example from testrepo.

Open command was not using system_path to ensure user expansion.
Testrepo was using pubsdir:// instead of docsdir://. Although not
directly used in test this was misleading and incoherent.
Also fixes missing system_path in filebroker.
main
Olivier Mangin 11 years ago
parent 0274f2640a
commit ac1562f4ea

@ -4,7 +4,7 @@ from .. import repo
from ..configs import config from ..configs import config
from ..uis import get_ui from ..uis import get_ui
from .. import color from .. import color
#from .helpers import add_references_argument, parse_reference from ..content import system_path
def parser(subparsers): def parser(subparsers):
@ -34,7 +34,7 @@ def command(args):
ui.exit() ui.exit()
try: try:
docpath = rp.databroker.real_docpath(paper.docpath) docpath = system_path(rp.databroker.real_docpath(paper.docpath))
cmd = with_command.split() cmd = with_command.split()
cmd.append(docpath) cmd.append(docpath)
subprocess.Popen(cmd) subprocess.Popen(cmd)

@ -1,3 +1,3 @@
docfile: pubsdir://doc/Page99.pdf docfile: docsdir://doc/Page99.pdf
notes: [] notes: []
tags: [search, network] tags: [search, network]

Loading…
Cancel
Save