gym/lib/gym/detect_values.rb in fastlane-2.79.0.beta.20180128010002 vs gym/lib/gym/detect_values.rb in fastlane-2.79.0.beta.20180129010003
- old
+ new
@@ -17,11 +17,14 @@
# Detect the project
FastlaneCore::Project.detect_projects(config)
Gym.project = FastlaneCore::Project.new(config)
# Go into the project's folder, as there might be a Gymfile there
- Dir.chdir(File.expand_path("..", Gym.project.path)) do
- config.load_configuration_file(Gym.gymfile_name)
+ project_path = File.expand_path("..", Gym.project.path)
+ unless File.expand_path(".") == project_path
+ Dir.chdir(project_path) do
+ config.load_configuration_file(Gym.gymfile_name)
+ end
end
detect_scheme
detect_platform # we can only do that *after* we have the scheme
detect_selected_provisioning_profiles # we can only do that *after* we have the platform