Edward,

I updated viewrendered.py
replaced:
  fn = fn.strip()
with
  fn = fn.strip()
  old_path = g.os_path_finalize_join(g.app.loadDir,fn)

and replaced
  ok = g.os_path_exists(path)
with
  ok = g.os_path_exists(path)
  g.trace('old_path: %s\nnew_path: %s' % (
  repr(old_path),repr(path)))

For both the nodes,
@movie Creo.wmv
@movie N:\Home\PTC_Creo\Creo.wmv
The log is the same:
Leo Log Window
Leo 4.9 final, build 4411, June 21, 2011
Python 3.2.2, qt version 4.7.4
Windows 6, 1, 7601, 2, Service Pack 1
reading: N:\leo\Media_Leo.leo
get_fn old_path: 'N:\\Home\\PTC_Creo\\Creo.wmv'
new_path: 'C:\\Python32\\Lib\\site-packages\\leo-editor\\leo\\core\
\N:Home\\PTC_Creo\\Creo.wmv'

The viewrendered window is "Movie
file not found: C:\Python32\Lib\site-packages\leo-editor\leo\core
\N:Home\PTC_Creo\Creo.wmv"

Regards
Lewis

On Oct 29, 8:42 am, "Edward K. Ream" <[email protected]> wrote:
> On Fri, Oct 28, 2011 at 4:15 PM, Edward K. Ream <[email protected]> wrote:
> Anyway, let's press on...
>
> .....
> In other words, the only difference is replacing::
>
>     path = g.os_path_finalize_join(g.app.loadDir,fn)
>
> by::
>
>      fn = fn.replace('\\','/')
>      parts = fn.split('/')
>      args = [g.app.loadDir]
>      args.extend(parts)
>      path = g.os_path_finalize_join(*args,c=c)
>
> Perhaps replacing back slashes with forward slashes may have the
> original problem, and then you used a "fancy" path that caused even
> more problems.
>
> To find out, please insert the following (tested) trace and report the
> output (it will go to the console):
>
>     # Put this at the start of the method, before changing fn.
>     old_path = g.os_path_finalize_join(g.app.loadDir,fn)
>
>     # Put this after path has been computed.
>     g.trace('old_path: %s\nnew_path: %s' % (
>         repr(old_path),repr(path)))
>
> Please try this with both these nodes::
>
>     @movie Creo.wmv
>     @movie N:\Home\PTC_Creo\Creo.wmv  (or something similar)
>
> Thanks.
>
> Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to