-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from pradyunsg/fix-path-pollution-properly
Fix path pollution again
- Loading branch information
Showing
3 changed files
with
16 additions
and
11 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import json | ||
import sys | ||
from os import environ, listdir, path | ||
from os import environ, path | ||
|
||
from setuptools import setup | ||
|
||
children = listdir(sys.path[0]) | ||
captured_sys_path = sys.path | ||
out = path.join(environ["TEST_POLLUTION_OUTDIR"], "out.json") | ||
with open(out, "w") as f: | ||
json.dump(children, f) | ||
json.dump(captured_sys_path, f) | ||
|
||
setup() |
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