Commit 086bdf88 authored by Sriram Karra's avatar Sriram Karra

Minor refactoring to make the asynk_ver string available to all the other files.

parent 3d3c0838
......@@ -47,9 +47,6 @@ from pimdb_bb import BBPIMDB
from folder_bb import BBContactsFolder
import utils
## Some Global Variables to get started
asynk_ver = 'v0.4.1+'
class AsynkParserError(Exception):
......@@ -247,7 +244,7 @@ def setup_parser ():
'a log file for tracking purposes')
p.add_argument('--version', action='version',
version='%(prog)s ' + ('%s' % asynk_ver))
version='%(prog)s ' + ('%s' % utils.asynk_ver))
return p
......@@ -38,6 +38,11 @@ def pytime_to_yyyy_mm_dd (pyt):
return ('%04d-%02d-%02d' % (pyt.year, pyt.month,
## Some Global Variables to get started
asynk_ver = 'v0.4.1+'
def asynk_ver_str ():
return 'ASynK %s' % asynk_ver
def asynk_ts_to_iso8601 (ts):
"""The text timestamps in ASynK will be stored in a format that is readily
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment