/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/__init__.py

Merged with mainline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
# -*- coding: UTF-8 -*-
 
3
 
1
4
# Copyright (C) 2006 by Szilveszter Farkas (Phanatic) <szilveszter.farkas@gmail.com>
2
5
#
3
6
# This program is free software; you can redistribute it and/or modify
962
965
        
963
966
        # Add'em to the ListStore
964
967
        for item in dirs:
965
 
            statinfo = os.stat(self.path + os.sep + item)
 
968
            try:
 
969
                statinfo = os.stat(self.path + os.sep + item)
 
970
            except OSError, e:
 
971
                if e.errno == 40:
 
972
                    continue
 
973
                else:
 
974
                    raise
966
975
            liststore.append([ gtk.STOCK_DIRECTORY,
967
976
                               True,
968
977
                               item,
1023
1032
            else:
1024
1033
                st = _('unknown')
1025
1034
            
1026
 
            statinfo = os.stat(self.path + os.sep + item)
 
1035
            try:
 
1036
                statinfo = os.stat(self.path + os.sep + item)
 
1037
            except OSError, e:
 
1038
                if e.errno == 40:
 
1039
                    continue
 
1040
                else:
 
1041
                    raise
1027
1042
            liststore.append([gtk.STOCK_FILE,
1028
1043
                              False,
1029
1044
                              item,
1255
1270
                
1256
1271
            # Add'em to the ListStore
1257
1272
            for item in dirs:
1258
 
                statinfo = os.stat(self.path + os.sep + item)
 
1273
                try:
 
1274
                    statinfo = os.stat(self.path + os.sep + item)
 
1275
                except OSError, e:
 
1276
                    if e.errno == 40:
 
1277
                        continue
 
1278
                    else:
 
1279
                        raise
1259
1280
                liststore.append([gtk.STOCK_DIRECTORY,
1260
1281
                                  True,
1261
1282
                                  item,
1318
1339
                else:
1319
1340
                    st = _('unknown')
1320
1341
                
1321
 
                statinfo = os.stat(self.path + os.sep + item)
 
1342
                try:
 
1343
                    statinfo = os.stat(self.path + os.sep + item)
 
1344
                except OSError, e:
 
1345
                    if e.errno == 40:
 
1346
                        continue
 
1347
                    else:
 
1348
                        raise
1322
1349
                liststore.append([gtk.STOCK_FILE,
1323
1350
                                  False,
1324
1351
                                  item,