Create a .bat file on your desktop to run your script
Project description
A little function to create a batch file on your desktop to run your script.
from CreateBat import create_batch_file_on_desktop
create_batch_file_on_desktop()
#After calling the function, filedialog.askopenfilename will ask for the .py file
output:
Do you want to add parameters? (e.g: --path=C:\Users )>? --check
If you want to keep the console open after executing the script, press: "y" ?>? y
Batchfile written to:
C:\Users\Gamer\Desktop\_bs4dfscraping.bat
_____________________
@echo off
C:
cd "C:\Users\Gamer\anaconda3\envs\dfdir"
echo Activating dfdir
CALL activate dfdir
echo Starting Python C:\Users\Gamer\anaconda3\envs\dfdir\bs4dfscraping.py
CALL "C:\Users\Gamer\anaconda3\envs\dfdir\python.exe" -i "C:\Users\Gamer\anaconda3\envs\dfdir\bs4dfscraping.py" --check
Out[3]: 'C:\\Users\\Gamer\\Desktop\\_bs4dfscraping.bat'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CreateBat-0.21.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file CreateBat-0.21.tar.gz.
File metadata
- Download URL: CreateBat-0.21.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b65550fdb349887b3be273bfa2d1a057d96cf518ab64067bd6a3f97df545c025
|
|
| MD5 |
c1f1d2905bd21ba6662b9a3006495722
|
|
| BLAKE2b-256 |
cd765031ae92aa1be779e177b2db4bec4f523727397ef546257c8fa51f4f2b73
|
File details
Details for the file CreateBat-0.21-py3-none-any.whl.
File metadata
- Download URL: CreateBat-0.21-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49a91d0315c2988a82956ca54f0911685877f6cc30e0dbb5145a659c5925fcc2
|
|
| MD5 |
e1c2f46e90c3880470afbf95110e83c9
|
|
| BLAKE2b-256 |
8b99346353ae7e223c01bc4b5617722bbeb80a5fec87f05d183472683eda13c4
|