refact: set a better name to the main function draft
authoralain leufroy <alain@leufroy.fr>
Thu, 28 Mar 2013 23:43:43 +0100
changeset 16 a3f3c61347c1
parent 15 981b5667158c
child 27 a5127c7db5d9
refact: set a better name to the main function
h5fs.py
--- a/h5fs.py	Fri Apr 13 21:06:08 2012 +0200
+++ b/h5fs.py	Thu Mar 28 23:43:43 2013 +0100
@@ -131,7 +131,7 @@
         return self.get_data(h5entry, offset, offset + size)
 
 
-def __main__():
+def main():
     '''Main entry point that start the HDF5 filesystem server'''
     usage = "\nUserspace HDF5 file explorer.\n\n%prog sourcefile mountpoint"
     class H5FS(FsMixin, fuse.Fuse):
@@ -152,4 +152,4 @@
         h5file.close()
 
 if __name__ == '__main__':
-    __main__()
+    main()