mirror of
https://github.com/ipfs-shipyard/py-ipfs-http-client.git
synced 2021-08-30 00:23:11 +03:00
Use pathlib.Path to construct import in publish.py
This commit is contained in:
committed by
Alexander Schlarb
parent
9786643622
commit
e02a95f892
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user