From 8a91c0a0e5764cb47f9116c727ad30466b97c35e Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Tue, 14 Feb 2017 10:39:56 -0800 Subject: [PATCH] Attempt to fix open source Yoga build. Reviewed By: emilsjolander Differential Revision: D4557733 fbshipit-source-id: b99701e9c1ec56fb147aa4cc738549df90aa7016 --- YOGA_DEFS | 4 ++++ csharp/BUCK | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/YOGA_DEFS b/YOGA_DEFS index 1c71e4c0..bb706632 100644 --- a/YOGA_DEFS +++ b/YOGA_DEFS @@ -1,3 +1,7 @@ +with allow_unsafe_import(): + import os.path +def isdir(filename): + return os.path.isdir(filename) YOGA_ROOT = '//...' JAVA_TARGET = '//java:java' diff --git a/csharp/BUCK b/csharp/BUCK index bc6fc3a4..de1e9a39 100644 --- a/csharp/BUCK +++ b/csharp/BUCK @@ -35,7 +35,7 @@ cxx_library( visibility = ['PUBLIC'], ) -if py_sdk.os.path.isdir('/Applications/Xcode.app'): +if isdir('/Applications/Xcode.app'): yoganet_ios_srcs = [] for arch in [ 'iphonesimulator-x86_64', 'iphonesimulator-i386', 'iphoneos-arm64', 'iphoneos-armv7'