Skip to content

Commit

Permalink
refactor docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 2, 2025
1 parent 4f89816 commit 713d5f5
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions commune/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def forward(self):
argv = ['vs']
fn_obj = self.get_fn(argv)
params = self.get_params(argv)
print(f'Calling({fn_obj})')
output = fn_obj(*params['args'], **params['kwargs']) if callable(fn_obj) else fn_obj
latency = time.time() - t0
print(f'❌Error({latency:.3f}sec)❌' if c.is_error(output) else f'✅Result({latency:.3f}s)✅')
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions commune/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,6 @@ def files(cls,
return :
a list of files in the path
"""
if c.module_exists(path):
path = c.dirpath(path)
if cls.module_name == 'module':
path = path or './'
else:
Expand Down Expand Up @@ -1849,6 +1847,7 @@ def readmes(self, path='./', search=None):
files = c.files(path)
readmes = [f for f in files if f.endswith('.md')]
return readmes

def docs(self, path='./', search=None):
files = c.files(path)
readmes = [f for f in files if f.endswith('.md')]
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 713d5f5

Please sign in to comment.