Metadata-Version: 2.1
Name: CreateBat
Version: 0.21
Summary: Create a .bat file on your desktop to run your script
Home-page: https://github.com/hansalemaos/CreateBat
Author: Johannes Fischer
Author-email: <aulasparticularesdealemaosp@gmail.com>
License: MIT
Keywords: batch,bat,windows,pythonbat
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Editors :: Text Processing
Classifier: Topic :: Text Processing :: General
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENSE.rst


A little function to create a batch file on your desktop to run your script. 



```python

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'





```

