Yuvipanda has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/150063

Change subject: Use os.path.join instead of string concat
......................................................................

Use os.path.join instead of string concat

Change-Id: I242996204e14cfc4e8f2ba1ea4648212126532c6
---
M jouncebot.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/bots/jouncebot 
refs/changes/63/150063/1

diff --git a/jouncebot.py b/jouncebot.py
index 7eae11e..7e506ac 100755
--- a/jouncebot.py
+++ b/jouncebot.py
@@ -172,7 +172,8 @@
     (options, args) = parser.parse_args()
 
     # Attempt to load the configuration
-    configloader.import_file(os.path.dirname(__file__) + '/DefaultConfig.yaml')
+    config_path = os.path.join(os.path.dirname(__file__), 'DefaultConfig.yaml')
+    configloader.import_file(config_path)
     if options.configFile is not None:
         configloader.import_file(options.configFile)
 

-- 
To view, visit https://gerrit.wikimedia.org/r/150063
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I242996204e14cfc4e8f2ba1ea4648212126532c6
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/bots/jouncebot
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to