From 46cf853445f0bab528f3bd02903202a91df8e4b0 Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Mon, 29 Jun 2015 22:01:13 +0200 Subject: [PATCH] pep8 fixes --- lib/config.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/config.py b/lib/config.py index 9a8ca70..09e7d1e 100644 --- a/lib/config.py +++ b/lib/config.py @@ -43,6 +43,7 @@ def setup_build_path(build_path): else: os.makedirs(build_path, 0o755) + def adapt_cmake_command_to_arch(cmake_command): """ Adapt CMake command for MS Windows architecture: @@ -53,13 +54,13 @@ def adapt_cmake_command_to_arch(cmake_command): """ if sys.platform == 'win32': - cmake_pos=cmake_command.find('cmake') - cmake_export_vars=cmake_command[:cmake_pos] - cmake_strings=cmake_command[cmake_pos:] - all_modified_exported_vars="" + cmake_pos = cmake_command.find('cmake') + cmake_export_vars = cmake_command[:cmake_pos] + cmake_strings = cmake_command[cmake_pos:] + all_modified_exported_vars = "" for exported_var in cmake_export_vars.split(): - modified_exported_var="set " + exported_var + " && " - all_modified_exported_vars=all_modified_exported_vars+modified_exported_var + modified_exported_var = "set " + exported_var + " && " + all_modified_exported_vars = all_modified_exported_vars + modified_exported_var cmake_command_arch = all_modified_exported_vars + cmake_strings else: cmake_command_arch = cmake_command @@ -136,7 +137,7 @@ def configure(root_directory, build_path, cmake_command, only_show): if not only_show: setup_build_path(build_path) - cmake_command=adapt_cmake_command_to_arch(cmake_command) + cmake_command = adapt_cmake_command_to_arch(cmake_command) print('%s\n' % cmake_command) if only_show: