0

Moved helper function out of overviewer.py and into util.py

Solves a dependency problem where you can't import overviewer unless the extension is built
This commit is contained in:
Andrew Chin
2011-03-24 22:45:26 -04:00
parent 8dc66083e0
commit 172198558a
3 changed files with 22 additions and 18 deletions

View File

@@ -94,9 +94,9 @@ if py2exe is not None:
class CustomPy2exe(py2exe.build_exe.py2exe):
def run(self):
try:
import overviewer
import util
f = open("overviewer_version.py", "w")
f.write("VERSION=%r\n" % overviewer.findGitVersion())
f.write("VERSION=%r\n" % util.findGitVersion())
f.write("BUILD_DATE=%r\n" % time.asctime())
f.write("BUILD_PLATFORM=%r\n" % platform.processor())
f.write("BUILD_OS=%r\n" % platform.platform())