Skip to content

Commit

Permalink
support windows path (semgrep#1353)
Browse files Browse the repository at this point in the history
* support windows path

Fix semgrep#1336

* fmt
  • Loading branch information
DrewDennison authored Jul 24, 2020
1 parent f4ff693 commit e7a7c76
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions semgrep/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,16 @@ def run(self):
os.putenv("SKIP_NUITKA", "TRUE")
if "osx" in distutils.util.get_platform():
with chdir(repo_root):
os.system(os.path.join(repo_root, "release-scripts/osx-release.sh"))
source = os.path.join(repo_root, "artifacts/semgrep-core")
os.system(
os.path.join(repo_root, "release-scripts", "osx-release.sh")
)
source = os.path.join(repo_root, "artifacts", "semgrep-core")
else:
with chdir(repo_root):
os.system(
os.path.join(repo_root, "release-scripts/ubuntu-release.sh")
os.path.join(repo_root, "release-scripts", "ubuntu-release.sh")
)
source = os.path.join(repo_root, "semgrep-files/semgrep-core")
source = os.path.join(repo_root, "semgrep-files", "semgrep-core")

## run this after trying to build (as otherwise this leaves
## venv in a bad state: https://github.com/benfred/py-spy/issues/69)
Expand Down

0 comments on commit e7a7c76

Please sign in to comment.