diff options
author | Pavel Volkov <m@gpie.pw> | 2015-05-01 23:22:37 +0300 |
---|---|---|
committer | Pavel Volkov <m@gpie.pw> | 2015-05-01 23:22:37 +0300 |
commit | da833dd21d43241deca84a2990917735aa61cec1 (patch) | |
tree | a6e1a5c865c5dadb763f9947e933255c91c36544 | |
parent | 83841d3381b66767ec29b56cd46a0979b3e52e83 (diff) |
Fix bug: README files in extensions/ were treated as python modules
-rw-r--r-- | gateway.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()) |