Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Volkov <m@gpie.pw>2015-05-01 23:22:37 +0300
committerPavel Volkov <m@gpie.pw>2015-05-01 23:22:37 +0300
commitda833dd21d43241deca84a2990917735aa61cec1 (patch)
treea6e1a5c865c5dadb763f9947e933255c91c36544
parent83841d3381b66767ec29b56cd46a0979b3e52e83 (diff)
Fix bug: README files in extensions/ were treated as python modules
-rw-r--r--gateway.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway.py b/gateway.py
index cfbbc2c..729e653 100644
--- a/gateway.py
+++ b/gateway.py
@@ -892,7 +892,7 @@ def loadExtensions(dir):
Read and exec files located in dir
"""
for file in os.listdir(dir):
- if not file.startswith("."):
+ if not file.startswith(".") and file.endswith(".py"):
execfile("%s/%s" % (dir, file), globals())