Relative path on Windows XP - RN 1.8

Asked by marktake on 2014-01-11

Hi,

I'm using RedNotebook 1.8 on Windows XP. I can't get the relative paths to work :(

My path with RedNotebook configuration is the following:
C:\Documents and Settings\mark\.rednotebook

I paste the following file into it: manual.doc

Then I add relative link to the file in the RedNotebook: [manual ""manual.doc""] and when I click on it then it doesn't work :(

In the rednotebook.log file I get the following message:

2014-01-11 18:22:25,655 INFO Clicked URI "file:///manual.doc"
2014-01-11 18:22:25,655 DEBUG Transformed local URI file:///manual.doc to file:///manual.doc
2014-01-11 18:22:25,655 INFO Trying to open file:///manual.doc with "os.startfile"
2014-01-11 18:22:25,655 ERROR Opening file:///manual.doc with "os.startfile" failed
Traceback (most recent call last):
  File "/home/jendrik/data/projects/RedNotebook/build-env/drive_c/build\rednotebook\out00-PYZ.pyz\rednotebook.util.filesystem", line 333, in open_url
WindowsError: [Error 3] System nie może odnaleźć określonej ścieżki: u'file:///manual.doc'

The last line is in Polish :). It says that the system can't find the determined path: u'file:///manual.doc'

Am I doing something wrong?

Question information

Language:
English Edit question
Status:
Open
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Rob Norris (rw-norris) said : #1

I believe the working directory for RedNotebook is the directory where the journals are loaded from.

In your setup the RNB default directory is:
C:\Documents and Settings\mark\.rednotebook\data

Thus I believe you have two options, change the relative path to point up one level thus:
[manual ""..\manual.doc""]

Or

move that file into the .rednotebook\data folder

For reference I think normally inserting a file via the GUI button will create the file with an absolute path such as
[manual ""file:///C:\Documents and Settings\mark\.rednotebook\data\manual.doc""]
Which can be annoying if you want to sync your data between different computers as it may be different OS Platforms or different OS home folder layout (i.e. WinXP vs Win7) or different user names. Maybe there should be an configuration option to write the paths in a relative manner...

HTH, Rob.

marktake (jquery) said : #2

Hi Rob,

I tried both ways you proposed but I get the same error message:

2014-01-24 22:30:17,780 INFO Clicked URI "file:///manual.doc"
2014-01-24 22:30:17,780 DEBUG Transformed local URI file:///manual.doc to file:///manual.doc
2014-01-24 22:30:17,780 INFO Trying to open file:///manual.doc with "os.startfile"
2014-01-24 22:30:17,780 ERROR Opening file:///manual.doc with "os.startfile" failed
Traceback (most recent call last):
  File "/home/jendrik/data/projects/RedNotebook/build-env/drive_c/build\rednotebook\out00-PYZ.pyz\rednotebook.util.filesystem", line 333, in open_url
WindowsError: [Error 3] System nie może odnaleźć określonej ścieżki: u'file:///manual.doc'

Yes, the relative path should be definitely part of the configuration.

Can you help with this problem?

Provide an answer of your own, or ask marktake for more information if necessary.

To post a message you must log in.