dosym her çağrıldığında makedirs yapma , bu directory zaten önceden yapılmış olunabilir ( multiple dosym durumu )
This commit is contained in:
@@ -193,7 +193,9 @@ def dosym(sourceFile, destinationFile):
|
|||||||
'''creates soft link between sourceFile and destinationFile'''
|
'''creates soft link between sourceFile and destinationFile'''
|
||||||
|
|
||||||
''' example call: pisitools.dosym("/usr/bin/bash", "/bin/bash")'''
|
''' example call: pisitools.dosym("/usr/bin/bash", "/bin/bash")'''
|
||||||
makedirs(get.installDIR() + os.path.dirname(destinationFile))
|
path = get.installDIR() + os.path.dirname(destinationFile)
|
||||||
|
if not os.access(path, os.F_OK):
|
||||||
|
makedirs(path)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.symlink(sourceFile, get.installDIR() + destinationFile)
|
os.symlink(sourceFile, get.installDIR() + destinationFile)
|
||||||
|
|||||||
Reference in New Issue
Block a user