-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proper wine program locate + improved iverilog support
- Loading branch information
1 parent
c07c615
commit f991dca
Showing
10 changed files
with
284 additions
and
150 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
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python3 | ||
# coding: utf-8 | ||
|
||
import os | ||
|
||
from pathlib import Path | ||
|
||
|
||
def locate(program: str): | ||
""" | ||
locate where an exe file is store in a wine installation | ||
wine load application in WINEPREFIX (by default $HOME/.wine) | ||
""" | ||
wineprefix = os.getenv("WINEPREFIX") or os.path.join(os.getenv("HOME"), ".wine") | ||
ans = [] | ||
for file in Path(wineprefix).rglob("**/*.exe"): | ||
if program in str(file): | ||
ans.append(str(file)) | ||
return ans[-1] |
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
Oops, something went wrong.