Skip to content

Commit

Permalink
docs: wrap in path
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 30, 2023
1 parent 1d74d05 commit 3d6523f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/userguides/compile.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ vyper:
You can also configure adhoc settings in Python code:

```python
from pathlib import Path
from ape import compilers
settings = {"vyper": {"version": "0.3.7"}, "solidity": {"version": "0.8.0"}}
Expand All @@ -104,8 +105,8 @@ compilers.compile(
# Or, more explicitly:
vyper = compilers.get_compiler("vyper", settings=settings["vyper"])
vyper.compile("path/to/contract.vy")
vyper.compile([Path("path/to/contract.vy")])
solidity = compilers.get_compiler("solidity", settings=settings["solidity"])
vyper.compile("path/to/contract.sol")
vyper.compile([Path("path/to/contract.sol")])
```

0 comments on commit 3d6523f

Please sign in to comment.