-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -341,14 +341,9 @@ def complete_cd(self,text,line,begidx,endidx): | |
complete_rm=complete_cd | ||
complete_mkdir=complete_cd | ||
|
||
if __name__ == '__main__': | ||
try: | ||
path = sys.argv[1] | ||
except IndexError: | ||
sys.stderr.write("%s (hdf5 file path)\n" % sys.argv[0]) | ||
sys.exit(1) | ||
|
||
intro = """h5browser.py - A lightweight HDF5 browser | ||
def do_license(self,argv): | ||
"""license - Print BSD license""" | ||
txt = """h5browser.py - A lightweight HDF5 browser | ||
Copyright (c) 2019, Wong Hang <[email protected]> | ||
All rights reserved. | ||
|
@@ -378,7 +373,13 @@ def complete_cd(self,text,line,begidx,endidx): | |
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
""" | ||
|
||
print(intro) | ||
b = h5browser(path) | ||
b.cmdloop() | ||
print(txt) | ||
|
||
if __name__ == '__main__': | ||
try: | ||
path = sys.argv[1] | ||
except IndexError: | ||
sys.stderr.write("%s (hdf5 file path)\n" % sys.argv[0]) | ||
sys.exit(1) | ||
else: | ||
h5browser(path).cmdloop() |