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:
authorRoman K. <mrdoctorwho@gmail.com>2015-05-02 00:00:42 +0300
committerRoman K. <mrdoctorwho@gmail.com>2015-05-02 00:00:42 +0300
commit68e06cd71ce2a07aac3fa21ef372b101261d3314 (patch)
treea6e1a5c865c5dadb763f9947e933255c91c36544
parent83841d3381b66767ec29b56cd46a0979b3e52e83 (diff)
parentda833dd21d43241deca84a2990917735aa61cec1 (diff)
Merge pull request #91 from mikken/extensions_filelist_fix
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())