Squish: Fix handling of shared folders

If the respective option is omitted we should not
use all python files of the current working directory
as this may lead to bad side effects.

Change-Id: I23d3c97971e40ecbc4c585b7fd12b58953b0f623
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2020-09-15 15:26:32 +02:00
parent f1c9f8e628
commit b1af27d14a
+5 -1
View File
@@ -59,7 +59,11 @@ def parseCommandLine():
sys.exit(1)
onlyRemovable = options.onlyRemovable
deleteObjects = options.delete
sharedFolders = map(os.path.abspath, options.sharedFolders.split(','))
if len(options.sharedFolders) == 0:
sharedFolders = ()
else:
sharedFolders = map(os.path.abspath, options.sharedFolders.split(','))
def collectObjects():
global objMap