iolanta 2.1.16__py3-none-any.whl → 2.1.18__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.
iolanta/cli/main.py CHANGED
@@ -183,10 +183,12 @@ def render_and_return(
183
183
  # URIRef - determine project_root if it's a file:// URI
184
184
  if str(node).startswith("file://"):
185
185
  path = Path(str(node).replace("file://", ""))
186
+ # Load current directory (like CLI AI agents): use parent if path is a file
187
+ project_root = path.parent if path.is_file() else path
186
188
  iolanta: Iolanta = Iolanta(
187
189
  language=Literal(language),
188
190
  logger=logger,
189
- project_root=path,
191
+ project_root=project_root,
190
192
  )
191
193
  else:
192
194
  iolanta: Iolanta = Iolanta(
@@ -160,7 +160,7 @@ class PageSwitcher(IolantaWidgetMixin, ContentSwitcher): # noqa: WPS214, WPS338
160
160
  renderable=renderable,
161
161
  flip_options=flip_options,
162
162
  facet_iri=facet_iri,
163
- is_reload=is_reload,git
163
+ is_reload=is_reload,
164
164
  )
165
165
 
166
166
  def on_worker_state_changed( # noqa: WPS210
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iolanta
3
- Version: 2.1.16
3
+ Version: 2.1.18
4
4
  Summary: Semantic Web browser
5
5
  License: MIT
6
6
  Author: Anatoly Scherbakov
@@ -6,7 +6,7 @@ iolanta/cli/formatters/choose.py,sha256=LWzsO_9IBSSgYNIyLlItkp8TNvpW3v6YCQ8-6kbI
6
6
  iolanta/cli/formatters/csv.py,sha256=ceJ_DTz0beqeK-d6FPBQqqjXrziEfF0FRSLoGZCt_fs,760
7
7
  iolanta/cli/formatters/json.py,sha256=Og5B9UrSM_0NWqW5Afpsy6WH8ZfYgPMVXYvT3i-43Jc,748
8
8
  iolanta/cli/formatters/pretty.py,sha256=IypZRAr2vNqcXFY6NOIc75mpyfpFWh56aCBlOPDDieQ,2901
9
- iolanta/cli/main.py,sha256=T1l1ilWp818pF3oR6VJIlPQ_ElicN7ECGlcJm5XiUqo,8170
9
+ iolanta/cli/main.py,sha256=RNNrj8Rnh6F9ISbxCPc_LHQrgwPcwvQ2vL6NU2rxNus,8333
10
10
  iolanta/cli/models.py,sha256=cjbpowdzI4wAP0DUk3qoVHyimk6AZwlXi9CGmusZTuM,159
11
11
  iolanta/cli/pretty_print.py,sha256=M6E3TmhzA6JY5GeUVmDZLmOh5u70-393PVit4voFKDI,977
12
12
  iolanta/context.py,sha256=bZR-tbZIrDQ-Vby01PMDZ6ifxM-0YMK68RJvAsyqCTs,507
@@ -80,7 +80,7 @@ iolanta/facets/textual_browser/home.py,sha256=GfDD1G2HiwdLkPkNdcYRqVIxDl5tWH9few
80
80
  iolanta/facets/textual_browser/location.py,sha256=qWa7xUgaWKYOmiQuwI1TbyvujpKRb1pxJJZ8lFDcjKk,259
81
81
  iolanta/facets/textual_browser/models.py,sha256=DqTBjhkkTt5mNwqr4DzNbPSqzV-QtNqfKj7wpn6T3ao,173
82
82
  iolanta/facets/textual_browser/page.py,sha256=NkcQ5rSKZRbp63C8ozgsR_iVhcKHGv_SytUCQyGa7ss,786
83
- iolanta/facets/textual_browser/page_switcher.py,sha256=zVZroradbWKOdg2Gxopxd7k3_vumKq1HuzUuwCL4QVc,10617
83
+ iolanta/facets/textual_browser/page_switcher.py,sha256=PHWf-Ok2t6HKO7rol4qwkgI7RkpUqMM_Wnp5WGJwsaI,10614
84
84
  iolanta/facets/textual_class/__init__.py,sha256=tiL0p-3JspGcBRj4qa3rmoBFAuadk71l2ja2lJN6CEs,75
85
85
  iolanta/facets/textual_class/facets.py,sha256=MiGTapgt30ME2fapwdrD_yQj4mhkdmyMAjzxaoLW5Dk,6087
86
86
  iolanta/facets/textual_class/sparql/instances.sparql,sha256=Wx3xThlEgwz8gqH5Fnv789p1CiBRJGLOhRpChtFq1Us,139
@@ -165,7 +165,7 @@ iolanta/sparqlspace/sparqlspace.py,sha256=Y8_ZPXwuGEXbEes6XQjaQWA2Zv9y8SWxMPDFdq
165
165
  iolanta/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
166
166
  iolanta/widgets/description.py,sha256=98Qd3FwT9r8sYqKjl9ZEptaVX9jJ2ULWf0uy3j52p5o,800
167
167
  iolanta/widgets/mixin.py,sha256=nDRCOc-gizCf1a5DAcYs4hW8eZEd6pHBPFsfm0ncv7E,251
168
- iolanta-2.1.16.dist-info/METADATA,sha256=1IqMfNdfWnF3lfICdMKUtPMaP_siZwurX4MWYLQ8eeI,2349
169
- iolanta-2.1.16.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
170
- iolanta-2.1.16.dist-info/entry_points.txt,sha256=Z1f3OaNruE2a6eprkiLgcPw-lZCah_cRT-PTlDD-Y1s,2569
171
- iolanta-2.1.16.dist-info/RECORD,,
168
+ iolanta-2.1.18.dist-info/METADATA,sha256=XZU3ors0xfTtQLxAWmGTGaUtUHjJB5AmMJ9JyM7SEsA,2349
169
+ iolanta-2.1.18.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
170
+ iolanta-2.1.18.dist-info/entry_points.txt,sha256=Z1f3OaNruE2a6eprkiLgcPw-lZCah_cRT-PTlDD-Y1s,2569
171
+ iolanta-2.1.18.dist-info/RECORD,,