revisit 0.0.29__py2.py3-none-any.whl → 0.0.31__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
revisit/revisit.py CHANGED
@@ -463,13 +463,20 @@ def widget(study: _WrappedStudyConfig, revisitPath: str = '', server=False, path
463
463
  # Set defaults for when not using server.
464
464
  dest_loc = f"{revisitPath}/public/__revisit-widget/assets/"
465
465
  dest_loc_react = f"{revisitPath}/src/public/__revisit-widget/assets/"
466
-
466
+
467
467
  # If using server,
468
468
  if server is True:
469
469
  # If not path specified, search in current environment.
470
470
  if pathToLib == '':
471
471
  # Get working directory
472
- current_dir = os.getcwd()
472
+
473
+ # Get the absolute path of the current file
474
+ current_file_path = os.path.abspath(__file__)
475
+
476
+ # Get the directory containing the current file
477
+ current_dir = os.path.dirname(current_file_path)
478
+
479
+ print(current_dir)
473
480
  # Get parent directory (list of packages installed in .venv)
474
481
  parent_dir = os.path.dirname(current_dir)
475
482
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: revisit
3
- Version: 0.0.29
3
+ Version: 0.0.31
4
4
  Requires-Dist: anywidget
5
5
  Requires-Dist: pandas
6
6
  Requires-Dist: pydantic>=2.10.5
@@ -1,10 +1,10 @@
1
1
  revisit/StudyConfigSchema.json,sha256=xtzwZifuPJoiHASx0o8PHqBuh5L30mjBlhQ5eqsYm10,132168
2
2
  revisit/__init__.py,sha256=QCvYt8m9QwpjcK4dv6GlLMUDCzRXGy16cua1r2biNCg,255
3
3
  revisit/models.py,sha256=FRy8IlUAtDS3gdmZwwvqR935lbViTPnnr7k0CAkDkzI,134084
4
- revisit/revisit.py,sha256=cLCXFrUP0H7IXAsZWFegO6EJBIXuBPl-NKl68-3Fem4,29532
4
+ revisit/revisit.py,sha256=v9M0c30Oon3LMg4Juik02ra0TdxxOZPWgQEmUQG8rUE,29759
5
5
  revisit/widget.py,sha256=VvFqRvvvn86fW8ASe1pxaAvh5ZLvvSRThI5XtlCdgcg,915
6
6
  revisit/static/widget.css,sha256=TLu5F6k0CvowQtmApPswG-JZUXYszo7a10dVWKnZsIg,647
7
7
  revisit/static/widget.js,sha256=jjc-RvauEnU8dHCR7oGSjg0y1CRXtAlw1-4yDeSbdKE,186472
8
- revisit-0.0.29.dist-info/METADATA,sha256=aRHF4uCMF6tHqv_ymvwciyEfs5MTgGECmZWZ4SRrfQk,24370
9
- revisit-0.0.29.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
10
- revisit-0.0.29.dist-info/RECORD,,
8
+ revisit-0.0.31.dist-info/METADATA,sha256=00A36cNFZ4GGnFVoIiWdIk9tRNS6ao8fdZxqf14GF_c,24370
9
+ revisit-0.0.31.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
10
+ revisit-0.0.31.dist-info/RECORD,,