如何在不使用CMD输入扩展名的情况下运行非exe应用程序? (即环境路径变量)

时间:2018-08-07 00:20:54

标签: python windows cmd path environment-variables

我有一个CMake Error at src/bsoncxx/CMakeLists.txt:81 (find_package): By not providing "Findlibbson-1.0.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libbson-1.0", but CMake did not find one. Could not find a package configuration file provided by "libbson-1.0" (requested version 1.10.0) with any of the following names: libbson-1.0Config.cmake libbson-1.0-config.cmake Add the installation prefix of "libbson-1.0" to CMAKE_PREFIX_PATH or set "libbson-1.0_DIR" to a directory containing one of the above files. If "libbson-1.0" provides a separate development package or SDK, be sure it has been installed. 中的python应用程序
我将此添加到了Windows路径O:\Apps\Python\myapp.py中,因此可以使用 CMD 这样在任何地方运行

O:\Apps\Python\

但是事实证明,我需要这样输入扩展名(与 .exe 文件不同)

> myapp someArg1 someArg2

如何仅通过名称运行它?

0 个答案:

没有答案