forked from facebook/buck
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix running buck in virtualenv (#14)
Buck was broken when run in a virtualenv inside the buck project, since a core python file becomes subject to `allow_unsafe_import(false)`. This change detects whether the file we're parsing is inside a virtualenv, and doesn't block imports if we are. See facebook#2162 for a longer bug description and investigation.
- Loading branch information
1 parent
a8e25cb
commit bb09c6b
Showing
1 changed file
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters