ignore filenames .endswith('~') and .startswith('.')
authorBryan Clark <clarkbw@gnome.org>
Thu, 26 Feb 2009 14:40:12 -0800
changeset 59 e75fd7ac3ee1687f1f31faec2876d2b5f97c4d55
parent 58 163542f70b944b239e2a96ba8025b325120b346c
child 60 558d8725b8076a6152590f880fa501e0cdc7df5d
push id1
push userroot
push dateWed, 08 Apr 2009 01:46:05 +0000
ignore filenames .endswith('~') and .startswith('.') i kinda feel bad for adding this but the assertion failure is screwing with my workflow
server/python/junius/bootstrap.py
--- 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,