Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaaaanquish committed Dec 9, 2019
1 parent 1188654 commit 4b331b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions thunderbolt/thunderbolt.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ def _get_client(self, filters, tqdm_disable):
return LocalDirectoryClient(self.workspace_directory, filters, tqdm_disable)

def _convert_absolute_path(self, x):
x = x.lstrip('.') if x.startswith('.') else x
x = x.lstrip('/') if x.startswith('/') else x
x = x.lstrip('.').lstrip('/')
if self.workspace_directory.rstrip('/').split('/')[-1] == x.split('/')[0]:
x = '/'.join(x.split('/')[1:])
x = os.path.join(os.path.dirname(self.workspace_directory), x)
x = os.path.join(self.workspace_directory, x)
return os.path.abspath(x)

def get_task_df(self, all_data: bool = False) -> pd.DataFrame:
Expand Down

0 comments on commit 4b331b7

Please sign in to comment.