iolanta 2.1.17__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(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iolanta
3
- Version: 2.1.17
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
@@ -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.17.dist-info/METADATA,sha256=eAAozTotEhoQYC4R05l1Oi1Y_GyfRQwdWc-Ue8HoE_c,2349
169
- iolanta-2.1.17.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
170
- iolanta-2.1.17.dist-info/entry_points.txt,sha256=Z1f3OaNruE2a6eprkiLgcPw-lZCah_cRT-PTlDD-Y1s,2569
171
- iolanta-2.1.17.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,,