summaryrefslogtreecommitdiffstats
path: root/src/modules/python.rs
diff options
context:
space:
mode:
authorTiffany Le-Nguyen <letiffany.nguyen@gmail.com>2019-07-19 16:18:52 -0400
committerMatan Kushner <hello@matchai.me>2019-07-19 16:18:52 -0400
commit08cf33522af2dde17de6645ce2015fa4e87a6a68 (patch)
tree0330aab2abf5ee9d22e28ac5179838b6bbc9a7b2 /src/modules/python.rs
parent025c0e5e8530ee1f53d2a45cd1d1de437cc2e819 (diff)
docs: Add vuepress with initial docs (#99)
Co-authored-by: Tiffany Le-Nguyen <tlenguyen@expedia.com> Co-authored-by: Matan Kushner <hello@matchai.me>
Diffstat (limited to 'src/modules/python.rs')
-rw-r--r--src/modules/python.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/python.rs b/src/modules/python.rs
index dbee151c8..740928a41 100644
--- a/src/modules/python.rs
+++ b/src/modules/python.rs
@@ -3,13 +3,13 @@ use std::process::Command;
use super::{Context, Module};
-/// Creates a segment with the current Python version
+/// Creates a module with the current Python version
///
/// Will display the Python version if any of the following criteria are met:
-/// - Current directory contains a `.py` file
/// - Current directory contains a `.python-version` file
/// - Current directory contains a `requirements.txt` file
/// - Current directory contains a `pyproject.toml` file
+/// - Current directory contains a file with the `.py` extension
pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
let is_py_project = context
.new_scan_dir()