ignore filenames .endswith('~') and .startswith('.')
i kinda feel bad for adding this but the assertion failure is screwing with my workflow
--- a/server/python/junius/bootstrap.py
+++ b/server/python/junius/bootstrap.py
@@ -107,16 +107,17 @@ def install_client_files(dbs):
# we cannot go in a zipped egg...
junius_root_dir = path_part_nuke(model.__file__, 4)
client_dir = os.path.join(junius_root_dir, 'client')
print 'listing contents of', client_dir
for filename in os.listdir(client_dir):
path = os.path.join(client_dir, filename)
+ if filename.endswith("~") or filename.startswith("."): continue;
if os.path.isfile(path):
f = open(path, 'rb')
ct = mimetypes.guess_type(filename)[0]
if ct is None and sys.platform=="win32":
# A very simplistic check in the windows registry.
import _winreg
try:
k = _winreg.OpenKey(_winreg.HKEY_CLASSES_ROOT,