in reply to problem with mounted share (MS Windows)

Does anyone know what causes this?

Probably because Tk doesn't understand UNC pathnames.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re: problem with mounted share (MS Windows)

Replies are listed 'Best First'.
Re^2: problem with mounted share (MS Windows)
by rovf (Priest) on Sep 25, 2008 at 14:02 UTC
    Probably because Tk doesn't understand UNC pathnames.

    Or, rather, it Tk requires to use \\ instead of // in UNC pathes? Did you try to replace the forward slashes by backslashes?

    -- 
    Ronald Fischer <ynnor@mm.st>
      I tried replacing / by \, but this is very tricky. It caused more problems than it solved.

      The path is provided by getcwd. Can I convert this into something Tk allways handles correctly?
        I tried replacing / by \, but this is very tricky.

        Why tricky? You just need to do a

        $dirname =~ tr(/)(\\);
        I think this test is important, because at the moment, we still *guess* that UNC pathes with forward slashes are the problem, but we don't know for sure.

        You could just write a tiny example program and try out various styles for specifying a path to Tk functions...

        -- 
        Ronald Fischer <ynnor@mm.st>