[ET Trac] [Einstein Toolkit] #605: Simfactory does not find the right 'path' for symlinked cactus directories

Einstein Toolkit trac-noreply at einsteintoolkit.org
Fri Oct 7 08:31:57 CDT 2011


#605: Simfactory does not find the right 'path' for symlinked cactus directories
------------------------+---------------------------------------------------
 Reporter:  knarf       |       Owner:  eschnett           
     Type:  defect      |      Status:  new                
 Priority:  minor       |   Milestone:  ET_2011_10         
Component:  SimFactory  |     Version:  development version
 Keywords:              |  
------------------------+---------------------------------------------------
 Simfactory currently does not detect the 'right' path to a Cactus
 sourcetree if this is from within a symlink, e.g. Cactus ->
 /mnt/data/Cactus. This is because while `pwd` returns '/home/user/Cactus',
 simfactory uses a wrapper to the C-library getcwd(), which dereferences
 symlinks. Simfactory then gets '/mnt/data/Cactus' and tries to use this
 path on remote machines when syncing - which of course does not work.

 The attached patch fixes this by using os.environ.get("PWD") and, if this
 is not defined, using os.getcwd() as workaround.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/605>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list