revisit 0.0.14__tar.gz → 0.0.15__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: revisit
3
- Version: 0.0.14
3
+ Version: 0.0.15
4
4
  Requires-Dist: altair[all]>=5.5.0
5
5
  Requires-Dist: anywidget
6
6
  Requires-Dist: ipykernel>=6.29.5
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "revisit"
7
- version = "0.0.14"
7
+ version = "0.0.15"
8
8
  dependencies = [
9
9
  "altair[all]>=5.5.0",
10
10
  "anywidget",
@@ -450,22 +450,26 @@ def widget(study: _WrappedStudyConfig, revisitPath: str):
450
450
  extracted_paths = []
451
451
 
452
452
  for component in study.root.components.values():
453
- if hasattr(component.root, 'path'):
453
+ print(component.root)
454
+ actual_component = component.root
455
+ if hasattr(actual_component, 'root'):
456
+ actual_component = actual_component.root
457
+ if hasattr(actual_component, 'path'):
454
458
 
455
- fileName = component.root.path.split('/')[-1]
459
+ fileName = actual_component.path.split('/')[-1]
456
460
 
457
- if component.root.type == 'react-component':
461
+ if actual_component.type == 'react-component':
458
462
  dest = f"{revisitPath}/src/public/__revisit-widget/assets/{fileName}"
459
463
  else:
460
464
  dest = f"{revisitPath}/public/__revisit-widget/assets/{fileName}"
461
465
 
462
466
  extracted_paths.append({
463
- "src": component.root.path,
467
+ "src": actual_component.path,
464
468
  "dest": dest
465
469
  })
466
470
 
467
471
  newPath = f"__revisit-widget/assets/{fileName}"
468
- component.root.path = newPath
472
+ actual_component.path = newPath
469
473
 
470
474
  uiConfig = study.root.uiConfig
471
475
  if uiConfig.helpTextPath is not None:
File without changes
File without changes
File without changes
File without changes