@@ -61,31 +61,23 @@ following import statement::
61
61
62
62
import examples.security.MyLibrary
63
63
64
- To find the precise location of this library module, the QL compiler processes the import
64
+ To find the precise location of this :ref: ` library module < library-modules >` , the QL compiler processes the import
65
65
statement as follows:
66
66
67
67
#. The ``. ``\ s in the qualified reference correspond to file path separators, so it first looks
68
68
up ``examples/security/MyLibrary.qll `` from the directory containing ``Example.ql ``.
69
69
70
- #. If that fails, it looks up ``examples/security/MyLibrary.qll `` relative to the enclosing query
71
- directory, if any.
72
- This query directory is a directory containing a |queries.xml file |_, and where the contents
73
- of that file is compatible with the current database schema.
74
- (For example, if you are querying a JavaScript database, then the |queries.xml file |_ should
75
- contain ``<queries language="javascript"/> ``.)
70
+ #. If that fails, it looks up ``examples/security/MyLibrary.qll `` relative to the query
71
+ directory, if any.
72
+ The query directory is the first enclosing directory containing a file called ``qlpack.yml ``. (Or, in legacy products, a file called ``queries.xml ``.)
76
73
77
- #. If no file is found using the above two checks, it looks up ``examples/security/MyLibrary.qll ``
78
- relative to each library path entry. The library path depends on the environment where you
74
+ #. If the compiler can't find the library file using the above two checks, it looks up ``examples/security/MyLibrary.qll ``
75
+ relative to each library path entry. The library path depends on the tools you use to
79
76
run your query, and whether you have specified any extra settings.
77
+ For more information, see `Library path <https://help.semmle.com/QL/ql-spec/language.html#library-path >`__ in the QL language specification.
80
78
81
- .. |queries.xml file | replace :: ``queries.xml `` file
82
- .. _queries.xml file : https://help.semmle.com/wiki/display/SD/queries.xml+file
83
-
84
79
If the compiler cannot resolve an import statement, then it gives a compilation error.
85
80
86
- This process is described in more detail in the section on `module resolution <https://help.semmle.com/QL/ql-spec/language.html#module-resolution >`_
87
- in the QL language specification.
88
-
89
81
.. _selections :
90
82
91
83
Selections
0 commit comments