Skip to content

Commit 2248ed4

Browse files
committed
move default.graphml to graphs/
1 parent ca725c5 commit 2248ed4

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

docs/graph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Warnet creates a Bitcoin network using a network topology from a [graphml](https
55
Before any scenarios or RPC commands can be executed, a Warnet network must be started from a graph.
66
See [warcli.md](warcli.md) for more details on these commands.
77

8-
To start a network called `"warnet"` from the [default graph file](../src/graphs/default.graphml):
8+
To start a network called `"warnet"` from the [default graph file](../graphs/default.graphml):
99
```
1010
warcli network start
1111
```
File renamed without changes.

src/warnet/cli/network.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import base64 # noqa: I001
23
from pathlib import Path
34

@@ -8,9 +9,7 @@
89
from rich.table import Table
910
from .rpc import rpc_call # noqa: I001
1011

11-
from warnet.graphs import GRAPHS # noqa: I001
12-
13-
DEFAULT_GRAPH_FILE = GRAPHS / "default.graphml"
12+
DEFAULT_GRAPH_FILE = Path(os.path.dirname(os.path.abspath(__file__))) / ".." / ".." / ".." / "graphs" / "default.graphml"
1413

1514

1615
def print_repr(wn: dict) -> None:

src/warnet/graphs/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)