File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ def get_version(project_dir):
33
33
HISTORY_FILE_PATH = os .path .join (os .path .expanduser ('~' ),
34
34
".pyjsonviewer_history" )
35
35
PROJECT_DIR = os .path .dirname (os .path .abspath (__file__ ))
36
- VERSION = get_version (PROJECT_DIR )
37
-
36
+ __version__ = get_version (PROJECT_DIR )
37
+ VERSION = eval ( "(" + __version__ . replace ( "." , "," ) + ")" )
38
38
39
39
class JSONTreeFrame (ttk .Frame ):
40
40
class Listbox (tk .Listbox ):
@@ -278,7 +278,7 @@ def show_info_window():
278
278
msg = """
279
279
PyJSONViewer
280
280
by Atsushi Sakai(@Atsushi_twi)
281
- Ver.""" + VERSION + """\n
281
+ Ver.""" + __version__ + """\n
282
282
"""
283
283
messagebox .showinfo ("About" , msg )
284
284
Original file line number Diff line number Diff line change 27
27
except (IOError , ImportError ):
28
28
readme = open (PROJECT_PATH + '/README.md' ).read ()
29
29
30
- # read VERSION
30
+ # read __version__
31
31
with open (PROJECT_PATH + "/pyjsonviewer/VERSION" , 'r' ) as fd :
32
- VERSION = fd .readline ().rstrip ('\n ' )
32
+ __version__ = fd .readline ().rstrip ('\n ' )
33
33
34
34
setup (
35
35
name = "PyJSONViewer" ,
36
- version = VERSION ,
36
+ version = __version__ ,
37
37
url = "https://github.com/AtsushiSakai/PyJSONViewer" ,
38
38
author = "Atsushi Sakai" ,
39
39
You can’t perform that action at this time.
0 commit comments