Added ability to specify version in a file.

This commit is contained in:
Joey Payne 2015-11-26 09:05:32 -07:00
commit 8378130388
5 changed files with 18 additions and 6 deletions

View file

@ -1,7 +1,5 @@
'''Command line module for web2exe.'''
__version__ = "v0.3.3b"
import ssl
try:
@ -51,6 +49,8 @@ from configobj import ConfigObj
COMMAND_LINE = True
inside_packed_exe = getattr(sys, 'frozen', '')
if inside_packed_exe:
@ -65,6 +65,12 @@ def get_file(path):
independent_path = utils.path_join(CWD, *parts)
return independent_path
__version__ = "v0.0.0"
with open(get_file('files/version.txt')) as f:
__version__ = f.read().strip()
TEMP_DIR = get_temp_dir()
DEFAULT_DOWNLOAD_PATH = get_data_path('files/downloads')