Permalink
Browse files

use os.path.join

  • Loading branch information...
1 parent 79e3bf8 commit 3eb676e03a10cd71eb3d78b36d967b2957ac39cd @dolladollabill dolladollabill committed with dragon512 Oct 14, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/gold_tests/autest-site/conditions.test.ext
@@ -50,8 +50,8 @@ def HasATSFeature(self, feature):
#test if a plugin exists in the libexec folder
def PluginExists(self, pluginname):
- path = self.Variables.PLUGINDIR + "/"
- return self.Condition(lambda: os.path.isfile(path + pluginname) == True, "The plugin: " + pluginname + " does not exist in " + path )
+ path = os.path.join(self.Variables.PLUGINDIR, pluginname)
+ return self.Condition(lambda: os.path.isfile(path) == True, path + " not found." )
ExtendCondition(HasATSFeature)

0 comments on commit 3eb676e

Please sign in to comment.