Y
Y
yahabrovec2018-08-26 00:08:06
Python
yahabrovec, 2018-08-26 00:08:06

How to embed your python script on the command line?

Hello everyone
Probably my question sounds strange, I just could not formulate it correctly. I'll try to explain on the fingers. I have my own bot, which has all sorts of different features (displaying news, exchange rates, etc.) I want to run it differently - python bot.py (while being in the same directory with it), but something like this - bot init. That is, just like I use git(git status...) or pip(pip install something). Thanks to all who answer.
PS I'm on Windows 10

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yeedab, 2018-08-30
@yeedab

Add the path of the folder with the script to the Path variable or make a link to the script in one of the folders present in the variable.
Press the Windows key and type change - almost immediately the option to Change system environment variables will appear.
5b878c3ce82de067495611.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question