Skip to content

Commit

Permalink
Use pathlib.Path to construct import in publish.py
Browse files Browse the repository at this point in the history
  • Loading branch information
c0llab0rat0r authored and ntninja committed May 30, 2021
1 parent 9786643 commit e02a95f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/publish.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/usr/bin/python3
import os
from pathlib import Path

import sphinx.cmd.build
import sys
import typing as ty

script_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.join(script_dir, ".."))
script_dir = Path(__file__).absolute().parent
sys.path.insert(0, str(script_dir.parent))

import ipfshttpclient

Expand Down

0 comments on commit e02a95f

Please sign in to comment.