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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ See also:
67
67
*`$basename$`: This variable is expanded to the base name of the current dependency line
68
68
*`$env:EnvVariableName$`: `EnvVariableName` is expanded to its environment variable value if it exists or left unexpanded otherwise
69
69
*`$pkgbase$`: Specify a package base directory. Can be used as part of a dependency file path.
70
-
*`$pkgmodname$`: This is mainly used inside the `reload` directive. It replaces the path seperators with dots (which works nicely as a fully qualified module name). Please see the [package dependency](test_scripts/pkg-dependency/README.md)example file.
70
+
*`$pkgparentmodname$` and `$pkgmodname$`: These are mainly used inside the `reload` directive. They help with proper [package dependency](test_scripts/pkg-dependency/README.md)reloading.
71
71
*`$ext$`: This resolves to the plugin suffix and extension ("64.dll", ".so", "64.dylib", etc.). See the trigger native deps files for reference.
This is an example where we have a dependency file that relies on a package.
1
+
In this example, we're dealing with a dependency file for a package that's currently being developed. This setup is designed to ensure that modules from the package, `idapyx` in this instance, are automatically reloaded upon any changes.
2
2
3
-
The package (supposedly) is under development and you want to have its modules be reloaded when they change.
3
+
For this purpose, we can either explicitly specify the package's full path or refer to it through an environment variable, as demonstrated below:
4
4
5
+
```plaintext
6
+
# Define package base folder
7
+
/pkgbase $env:idapyx$
8
+
# Automatically reload the package's modules when they change
9
+
/reload import importlib; from $pkgparentmodname$ import $basename$ as __qscripts_autoreload__; importlib.reload(__qscripts_autoreload__)
10
+
# Specify the paths to the package modules that need to be reloaded if they change
0 commit comments