|
@@ -218,6 +218,17 @@ set_word(size_t n, const Filename &value) {
|
|
|
set_string_word(n, value);
|
|
set_string_word(n, value);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * Allows a ConfigVariableFilename object to be passed to any Python function
|
|
|
|
|
+ * that accepts an os.PathLike object.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @since 1.10.13
|
|
|
|
|
+ */
|
|
|
|
|
+INLINE std::wstring ConfigVariableFilename::
|
|
|
|
|
+__fspath__() const {
|
|
|
|
|
+ return get_ref_value().to_os_specific_w();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Returns the variable's value, as a reference into the config variable
|
|
* Returns the variable's value, as a reference into the config variable
|
|
|
* itself. This is the internal method that implements get_value(), which
|
|
* itself. This is the internal method that implements get_value(), which
|