From: SourceForge.net <no...@so...> - 2003-04-24 14:48:57
|
Bugs item #726931, was opened at 2003-04-24 16:48 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=505224&aid=726931&group_id=63801 Category: labrun/rerun/schedule/mex Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jorrit Wiersma (jwiersma) Assigned to: Nobody/Anonymous (nobody) Summary: contractPath bad $HOME replacement Initial Comment: When I run labrun my current.log contains this mysterious line: Current dir: /usr~/tmp/sorting I have tracked down the reason to the following: on my system (which happens to be FreeBSD) the home directories are placed on the /usr partition and a soft link points from /home to /usr/home. This means that the absolute path of my home directory is /usr/home/wiersma but the contents of my $HOME variable is /home/wiersma. Now, when labutils.py tries to determine the current working directory it replaces `/home/wiersma' by `~'. Obviously, this goes wrong, because it fails to detect the /usr/ in front of it. Solution: check whether the path really starts with $HOME (and the same goes for replacing curdir with `.'). See the attached file for a diff with an example of how to fix it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=505224&aid=726931&group_id=63801 |