Skip to content

Commit

Permalink
Yet More Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Sep 26, 2024
1 parent 4769729 commit cddd3c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion photon-lib/py/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ photonlibpy/lib/*.so*
photonlibpy/lib/*.dylib*
photonlibpy/lib/*.dll*
photonlibpy/lib/*.pyd
photonlibpy/*.pyi
photonlibpy/lib/*.pyi
2 changes: 1 addition & 1 deletion photon-lib/py/create_photonlib_pyi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def write_stubgen():
sg = StubGen(_pp)
sg.put(_pp)
script_path = os.path.dirname(os.path.realpath(__file__))
with open(f"{script_path}/photonlibpy/_photonlibpy.pyi", "w") as f:
with open(f"{script_path}/photonlibpy/lib/_photonlibpy.pyi", "w") as f:
f.write(sg.get())


Expand Down
3 changes: 1 addition & 2 deletions photon-lib/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ def finalize_options(self):


script_path = os.path.dirname(os.path.realpath(__file__))
if not os.path.exists(f"{script_path}/photonlibpy/_photonlibpy.pyi"):
if not os.path.exists(f"{script_path}/photonlibpy/lib/_photonlibpy.pyi"):
print("Generating typehints")
try:
from create_photonlib_pyi import write_stubgen

write_stubgen()
except Exception as e:
print(e)
Expand Down
3 changes: 3 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import photonlibpy
print(photonlibpy)
print(photonlibpy.PhotonCamera("foobar").GetLatestResult())

0 comments on commit cddd3c6

Please sign in to comment.