diff --git a/PythonKit/PythonLibrary.swift b/PythonKit/PythonLibrary.swift index 6f81b9c..b8d52f8 100644 --- a/PythonKit/PythonLibrary.swift +++ b/PythonKit/PythonLibrary.swift @@ -96,6 +96,13 @@ public extension PythonLibrary { } } +// Methods of `PythonLibrary` required to set a given Python location. +public extension PythonLibrary { + static func useLibrary(_ path: String) { + PythonLibrary.Environment.library.set(path) + } +} + // `PythonVersion` struct that defines a given Python version. private extension PythonLibrary { struct PythonVersion {