Chromium Code Reviews| Index: runtime/tools/make_version.py |
| =================================================================== |
| --- runtime/tools/make_version.py (revision 13514) |
| +++ runtime/tools/make_version.py (working copy) |
| @@ -8,6 +8,7 @@ |
| import pwd |
|
ricow1
2012/10/11 08:45:30
You are still importing it
|
| import sys |
| import subprocess |
| +import getpass |
| from os.path import join |
| import time |
| from optparse import OptionParser |
| @@ -35,7 +36,7 @@ |
| build = getVersionPart(version_file, 'BUILD') |
| patch = getVersionPart(version_file, 'PATCH') |
| revision = getRevision() |
| - user = pwd.getpwuid(os.getuid())[0] |
| + user = getpass.getuser() |
| return '%s.%s.%s.%s_%s_%s' % (major, minor, build, patch, revision, user) |
| def makeFile(output_file, input_file, version_file): |