You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`lf.source_directory()`: Returns a string giving the full path to the directory containing the `.lf` file of the program.
2924
+
-`lf.package_directory()`: Returns a string giving the full path to the directory that is the root of the project or package (normally, the directory above the `src` directory).
2925
+
2926
+
The above can be used to find supporting files, as shown in the following example:
2927
+
2928
+
```lf-py
2929
+
target Python
2930
+
preamble {=
2931
+
import os
2932
+
=}
2933
+
main reactor {
2934
+
state source_path = {= os.path.join(lf.source_directory(), "PythonPaths.lf") =}
0 commit comments