| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 | 6 |
| 7 from google.appengine.api import app_identity | 7 from google.appengine.api import app_identity |
| 8 from google.appengine.api import modules | 8 from google.appengine.api import modules |
| 9 | 9 |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 """Returns the target name for the given module and version. | 27 """Returns the target name for the given module and version. |
| 28 | 28 |
| 29 Version defaults to the one running this code. | 29 Version defaults to the one running this code. |
| 30 """ | 30 """ |
| 31 if IsInDevServer(): | 31 if IsInDevServer(): |
| 32 # Dev server doesn't support multiple versions of a module. | 32 # Dev server doesn't support multiple versions of a module. |
| 33 return module_name | 33 return module_name |
| 34 else: | 34 else: |
| 35 version = version or GetCurrentVersion() | 35 version = version or GetCurrentVersion() |
| 36 return '%s.%s' % (version, module_name) | 36 return '%s.%s' % (version, module_name) |
| 37 | |
| OLD | NEW |