Da kid with da terible english is here again *g*. sorry, i need
your help again. Thx. I wish to add a HTMLHelpbook.
My program and all data lies on a linuxserver in the LAN.
My OS is win98 and if i start my program about a linked
networkdrive (so the network-drive is one of my HD's)
all is working fine.
But if i start the program without a linked networkdrive
the addbook do not work. addbook can't find the
directory of my HTMLbook...
Here's some code:
#this works fine with a netlink:
bookdir="doc/help/help.hhp"
# this is my current point: do not work
bookdir=os.getcwd()+"\\doc\\help\\help.hhp"
HelpMe = wxHtmlHelpController()
HelpMe.AddBook(bookdir)
self.HelpMe=HelpMe
My errormessage:
Cannot open.... : \\linuxserver\dir1\dir2\...\doc\help\help.hhp
I've tried with \\,\\\\,and other solutions. The current bookdir-string
works fine with ...open(bookdir,"r").... But not with addbook...
is the problem the type wxString??
(without you, my work here would be very difficult...)
thx, thx, thx...
But if i start the program without a linked networkdrive
the addbook do not work. addbook can't find the
directory of my HTMLbook...
...
My errormessage:
Cannot open.... : \\linuxserver\dir1\dir2\...\doc\help\help.hhp
Sorry, I don't understand -- what do you expect it to do? If the
drive is not connected, there is no such file and you are trying to
use it, so it reports and error. Did I miss something (as usual ;)?
Don't worry about it, your english is good enough for this list, and is not
as bad as some people I've had to work with...
# this is my current point: do not work
bookdir=os.getcwd()+"\\doc\\help\\help.hhp"
HelpMe = wxHtmlHelpController()
HelpMe.AddBook(bookdir)
self.HelpMe=HelpMe
My errormessage:
Cannot open.... : \\linuxserver\dir1\dir2\...\doc\help\help.hhp
Vaclav, are you still reading this list? I see that AddBook uses
wxFileSystem to load the file, does it handle the "\\networkshare\pathname"
syntax okay?
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
Vaclav, are you still reading this list? I see that AddBook uses
wxFileSystem to load the file, does it handle the
"\\networkshare\pathname" syntax okay?
If and only if the OS and/or libc handles it -- i.e. it can open
anything you can open with fopen().
> Vaclav, are you still reading this list? I see that AddBook uses
> wxFileSystem to load the file, does it handle the
> "\\networkshare\pathname" syntax okay?
If and only if the OS and/or libc handles it -- i.e. it can open
anything you can open with fopen().
Ren� said that Python's open() handles it okay, and I think it uses fopen
underneath, so it must be something else. I just wanted to be sure that
wxFileSystem tries to open it as a local file and didn't reject it as a
malformed URL or something.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!