Skip to content

Commit

Permalink
chore: Update IPFS-related code to use ES6 import/export syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
endomorphosis committed Jun 11, 2024
1 parent 4964470 commit bc68923
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion ipfs_transformers/__init_.py

This file was deleted.

2 changes: 1 addition & 1 deletion ipfs_transformers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from .ipfs_kit import ipfs_kit
# from .ipfs_kit import ipfs_kit
from .s3_kit import s3_kit
from .test_fio import test_fio
from .ipfs_transformers import ASTConfig
Expand Down
2 changes: 1 addition & 1 deletion ipfs_transformers/ipfs_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#sys.path.append(ipfs_lib_dir)
#sys.path.append(ipfs_lib_dir2)
sys.path.append(ipfs_transformers_dir)
from ipfs_kit_lib import install_ipfs, ipfs, ipfs_cluster_ctl, ipfs_cluster_service, ipfs_cluster_follow, ipget
from ipfs_kit import install_ipfs, ipfs, ipfs_cluster_ctl, ipfs_cluster_service, ipfs_cluster_follow, ipget

class ipfs_kit:
def __init__(self, resources, meta=None):
Expand Down
4 changes: 2 additions & 2 deletions ipfs_transformers/ipfs_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def __init__(self, collection=None, meta=None):
"s3_cfg": self.s3cfg,
"role": self.role
}
from model_manager import model_manager as model_manager
self.model_manager = model_manager(collection, meta)
from ipfs_model_manager import ipfs_model_manager as ipfs_model_manager
self.model_manager = ipfs_model_manager(collection, meta)
self.model_manager.load_collection_cache()
self.model_manager.state()

Expand Down

0 comments on commit bc68923

Please sign in to comment.