File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 44
55import tppt
66
7- # Flag to determine whether to use Polars
8- EXAMPLE_DIR = Path (__file__ ).parent
9-
107
118def main ():
129 """Run the sample."""
@@ -71,7 +68,7 @@ def main():
7168 )
7269
7370 # Save the presentation
74- presentation .save (EXAMPLE_DIR / "dataflame_table .pptx" )
71+ presentation .save (Path ( __file__ ). with_suffix ( " .pptx") )
7572
7673 print ("Successfully created presentation from Polars dataframe!" )
7774
@@ -90,4 +87,4 @@ def main():
9087 width = (500 , "pt" ),
9188 height = (50 , "pt" ),
9289 )
93- ).build ().save (EXAMPLE_DIR / "dataflame_table .pptx" )
90+ ).build ().save (Path ( __file__ ). with_suffix ( " .pptx") )
Original file line number Diff line number Diff line change 55
66import tppt
77
8- EXAMPLE_DIR = Path (__file__ ).parent
9-
108
119def main () -> None :
1210 presentation = (
@@ -22,7 +20,7 @@ def main() -> None:
2220 )
2321 .build ()
2422 )
25- presentation .save (EXAMPLE_DIR / "presentation_tree .pptx" )
23+ presentation .save (Path ( __file__ ). with_suffix ( " .pptx") )
2624
2725 # Get and display the tree structure
2826 print (
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ def main():
116116 )
117117
118118 # Save the presentation
119- presentation .save (Path (__file__ ).parent / "simple_example .pptx" )
119+ presentation .save (Path (__file__ ).with_suffix ( " .pptx") )
120120
121121 print ("Rich presentation created successfully!" )
122122
You can’t perform that action at this time.
0 commit comments