コード例 #1
0
ファイル: leoShadow.py プロジェクト: ATikhonov2/leo-editor
 def isSignificantPublicFile(self, fn):
     """
     This tells the AtFile.read logic whether to import a public file
     or use an existing public file.
     """
     return (g.os_path_exists(fn) and g.os_path_isfile(fn)
             and g.os_path_getsize(fn) > 10)
コード例 #2
0
ファイル: leoShadow.py プロジェクト: Darriall/leo-editor
 def isSignificantPublicFile(self, fn):
     '''This tells the AtFile.read logic whether to import a public file
     or use an existing public file.'''
     return (
         g.os_path_exists(fn) and
         g.os_path_isfile(fn) and
         g.os_path_getsize(fn) > 10
     )