From: <pj...@us...> - 2008-07-17 01:24:02
|
Revision: 4959 http://jython.svn.sourceforge.net/jython/?rev=4959&view=rev Author: pjenvey Date: 2008-07-17 01:23:59 +0000 (Thu, 17 Jul 2008) Log Message: ----------- add symlink on posix Modified Paths: -------------- branches/asm/Lib/os.py Modified: branches/asm/Lib/os.py =================================================================== --- branches/asm/Lib/os.py 2008-07-17 00:37:53 UTC (rev 4958) +++ branches/asm/Lib/os.py 2008-07-17 01:23:59 UTC (rev 4959) @@ -630,6 +630,14 @@ except: raise OSError(errno.EBADF, errno.strerror(errno.EBADF)) +if _name == 'posix': + def symlink(src, dst): + """symlink(src, dst) + + Create a symbolic link pointing to src named dst. + """ + return _posix.symlink(src, dst) + # Provide lazy popen*, and system objects # Do these lazily, as most jython programs don't need them, # and they are very expensive to initialize This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |