MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

NotebookDirectory fails

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105905] NotebookDirectory fails
  • From: Yoshi Fujiwara <yoshi.fujiwara at gmail.com>
  • Date: Thu, 24 Dec 2009 20:58:26 -0500 (EST)

In Mathematica 7.0 and Linux,
NotebookDirectory[] returns an empty string
after saving the notebook
and successfully returning a correct path at a first time.

This happens in the following Linux system:
"Version" -> "7.0 for Linux x86 (32-bit) (December 18, 2008)"

1. Save a notebook in which
  NotebookDirectory[]
returns a correct path.

2. Quit Mathematica, and open the notebook.

3. Evaluate the same line of NotebookDirectory[]
and I get an empty string.

This is troublesome for I cannot do
  SetDirectory[NotebookDirectory[]]
in notebooks.

Anyone has a similar problem?
Thanks.
Yoshi


  • Prev by Date: Function research
  • Next by Date: Re: Twitter.m (Twittering With Mathematica) broken?
  • Previous by thread: Re: Function research
  • Next by thread: Re: NotebookDirectory fails