Browse code

Allow 'find' command to follow symlinks.

YustasSwamp authored on 2015/06/10 07:48:07
Showing 1 changed files
... ...
@@ -6,7 +6,7 @@ class CommandUtils(object):
6 6
         self.findBinary = "find"
7 7
 
8 8
     def findFile (self, filename, sourcePath):
9
-        process = subprocess.Popen([self.findBinary,  sourcePath,  "-name", filename],  stdout=subprocess.PIPE)
9
+        process = subprocess.Popen([self.findBinary,  "-L", sourcePath,  "-name", filename],  stdout=subprocess.PIPE)
10 10
         returnVal = process.wait()
11 11
         if returnVal != 0:
12 12
             return None