forked from PyFarsi/pyabr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean.py
executable file
·33 lines (25 loc) · 1.17 KB
/
clean.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'''
Pyabr OS
Python Cloud Operating System Platform (c) 2021 PyFarsi. Free Software GNU General Public License v3.0
- Informations
* Name: Pyabr
* Founder: Mani Jamali
* Developers: PyFarsi Community
* Package Manager: Paye, PyPI
* License: GNU General Publice License v3.0
- Official Website
* Persian Page: https://pyabr.ir
* English Page: https://en.pyabr.ir
'''
import os, shutil,sys
from buildlibs import control
def clean():
if os.path.isdir ('app'): shutil.rmtree('app')
if os.path.isdir ('build-packs'): shutil.rmtree('build-packs')
if os.path.isdir('wheel/src'): shutil.rmtree('wheel/src')
if os.path.isdir('wheel/setup'): shutil.rmtree('wheel/setup')
if os.path.isfile('pyabr.zip'): os.remove ('pyabr.zip')
if os.path.isdir('sb'): shutil.rmtree('sb')
if os.path.isdir('stor'): shutil.rmtree('stor')
#if sys.argv[0].replace('/','') in __file__.replace('\\',''):
clean()