get revision from git; make it work everywhere
This commit is contained in:
@@ -22,8 +22,6 @@ import os
|
||||
# where am I on the disk ?
|
||||
__thisdir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
revision = "$Revision$"
|
||||
|
||||
if os.path.exists(os.path.join(__thisdir, 'uninstalled.py')):
|
||||
from morituri.configure import uninstalled
|
||||
config_dict = uninstalled.get()
|
||||
|
||||
@@ -7,4 +7,5 @@ def get():
|
||||
'isinstalled': True,
|
||||
'pluginsdir': '@PLUGINSDIR@',
|
||||
'version': '@VERSION@',
|
||||
'revision', '@REVISION@',
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
|
||||
import os
|
||||
import os.path
|
||||
|
||||
from morituri.common import common
|
||||
|
||||
|
||||
__thisdir = os.path.dirname(os.path.abspath(__file__))
|
||||
@@ -13,4 +15,5 @@ def get():
|
||||
'pluginsdir': os.path.abspath(os.path.join(
|
||||
__thisdir, '..', '..', 'plugins')),
|
||||
'version': '@VERSION@',
|
||||
'revision': common.getRevision(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user