Skip to content

Commit

Permalink
Format and align reactor-c
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Jun 25, 2024
1 parent b8e75f1 commit 8c876c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/c/reactor-c
10 changes: 6 additions & 4 deletions test/Python/src/PythonPaths.lf
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
/**
* This tests the functions lf.source_directory() and lf.package_directory().
* Success is just compiling and running without error.
* The test prints the contents of this file twice.
* This tests the functions lf.source_directory() and lf.package_directory(). Success is just
* compiling and running without error. The test prints the contents of this file twice.
*/
target Python

preamble {=
import os
=}

main reactor {
state source_path = {= os.path.join(lf.source_directory(), "PythonPaths.lf") =}
state package_path = {= os.path.join(lf.package_directory(), "src", "PythonPaths.lf") =}

reaction(startup) {=
file = open(self.source_path, "r");
print(file.read());
Expand All @@ -19,4 +21,4 @@ main reactor {
print(file.read());
file.close();
=}
}
}

0 comments on commit 8c876c9

Please sign in to comment.