[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-bugs] symlink Problem trying to run GNUmed from git
From: |
Jim Busser |
Subject: |
Re: [Gnumed-bugs] symlink Problem trying to run GNUmed from git |
Date: |
Sat, 30 Jul 2011 19:07:26 -0700 |
> MacBook-2:client djb$ sh gm-from-vcs.sh
> -------------------------------------------------
> Running from Git branch: * master
> -------------------------------------------------
> GNUmed startup: Running from local source tree.
> -----------------------------------------------
> Creating module import symlink ...
> real dir: /Users/djb/git/gnumed/gnumed/gnumed/client
> link: /Users/djb/git/gnumed/gnumed/gnumed/Gnumed
> Traceback (most recent call last):
> File "gnumed.py", line 519, in <module>
> setup_python_path()
> File "gnumed.py", line 191, in setup_python_path
> os.symlink(real_dir, link_name)
> OSError: [Errno 17] File exists
Solved.
I had caused my own problem, because after creating a local git clone in
/usr/local/git/gnumed
I moved it to my personal user space. Even after I remembered to change the
file permissions recursively, it did not occur to me that any posix symlinks
would now be mal-pointed. I just had to delete
/Users/djb/git/gnumed/gnumed/gnumed/Gnumed
and re-launch the GNUmed client, as a result of which the code in
gnumed.py
took care of recreating a symlink that now points correctly.
BTW the new symlink has the added advantage of gaining the Mac OS property of
dynamic linkage (and now has the appearance of an alias folder and not just the
appearance of a generic file)
http://en.wikipedia.org/wiki/Symbolic_link#Mac_OS_aliases
http://en.wikipedia.org/wiki/Alias_(Mac_OS)
-- Jim