فهرست منبع

Tweak `LD_LIBRARY_PATH` export to work with paths that contain spaces (#3585)

This also uses the `$PWD` environment variable which should always
be defined. It's also minutely faster than calling `$(pwd)` or using
the deprecated backtick syntax.
Hugo Locurcio 5 سال پیش
والد
کامیت
43410b3c86
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      development/cpp/custom_modules_in_cpp.rst

+ 2 - 2
development/cpp/custom_modules_in_cpp.rst

@@ -434,11 +434,11 @@ library that will be dynamically loaded when starting our game's binary.
 Once compiled, we should end up with a ``bin`` directory containing both the
 Once compiled, we should end up with a ``bin`` directory containing both the
 ``godot*`` binary and our ``libsummator*.so``. However given the .so is not in
 ``godot*`` binary and our ``libsummator*.so``. However given the .so is not in
 a standard directory (like ``/usr/lib``), we have to help our binary find it
 a standard directory (like ``/usr/lib``), we have to help our binary find it
-during runtime with the ``LD_LIBRARY_PATH`` environ variable:
+during runtime with the ``LD_LIBRARY_PATH`` environment variable:
 
 
 .. code-block:: shell
 .. code-block:: shell
 
 
-    export LD_LIBRARY_PATH=`pwd`/bin/
+    export LD_LIBRARY_PATH="$PWD/bin/"
     ./bin/godot*
     ./bin/godot*
 
 
 **note**: Pay attention you have to ``export`` the environ variable otherwise
 **note**: Pay attention you have to ``export`` the environ variable otherwise