From eeeb06243ca4e126dd24c34e6452d38c1d4d0407 Mon Sep 17 00:00:00 2001 From: Mirko Galimberti Date: Sat, 9 May 2020 10:40:29 +0200 Subject: [PATCH] Adds initial_working_directory --- kivy_ios/toolchain.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kivy_ios/toolchain.py b/kivy_ios/toolchain.py index 888fcd2..930bf42 100755 --- a/kivy_ios/toolchain.py +++ b/kivy_ios/toolchain.py @@ -31,6 +31,7 @@ from pbxproj.pbxextensions.ProjectFiles import FileOptions curdir = dirname(__file__) +initial_working_directory = getcwd() # For more detailed logging, use something like # format='%(asctime)s,%(msecs)d %(levelname)-8s [%(filename)s:%(funcName)s():%(lineno)d] %(message)s' @@ -349,11 +350,11 @@ class Context: # root of the toolchain self.root_dir = realpath(dirname(__file__)) - self.build_dir = "{}/build".format(getcwd()) - self.cache_dir = "{}/.cache".format(getcwd()) - self.dist_dir = "{}/dist".format(getcwd()) - self.install_dir = "{}/dist/root".format(getcwd()) - self.include_dir = "{}/dist/include".format(getcwd()) + self.build_dir = "{}/build".format(initial_working_directory) + self.cache_dir = "{}/.cache".format(initial_working_directory) + self.dist_dir = "{}/dist".format(initial_working_directory) + self.install_dir = "{}/dist/root".format(initial_working_directory) + self.include_dir = "{}/dist/include".format(initial_working_directory) self.archs = ( Arch64Simulator(self), Arch64IOS(self)) @@ -1364,7 +1365,7 @@ pip Install a pip dependency into the distribution } cookiecutter(template_dir, no_input=True, extra_context=context) filename = join( - getcwd(), + initial_working_directory, "{}-ios".format(args.name.lower()), "{}.xcodeproj".format(args.name.lower()), "project.pbxproj")