-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
20 lines (19 loc) · 736 Bytes
/
Copy pathsetup.py
File metadata and controls
20 lines (19 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from setuptools import setup
import os
import sys
if(len(sys.argv)>=1 and sys.argv[1] == 'install'):
os.system('rm -r /usr/share/fedit && rm /usr/share/applications/fedit.desktop')
os.system('mkdir /usr/share/fedit')
setup(name='Fedit',
version='0.0.1.6',
description='A simple text editor in python with tkinter',
author='Pythonic456',
data_files=[
('/usr/share/applications', ['data/fedit.desktop']),
('/usr/share/fedit/',['main.py']),
('/usr/share/fedit/',['data/fedit.png']),
('/usr/share/fedit/',['tktools.py'])
]
)
if(len(sys.argv)>=1 and sys.argv[1] == 'remove'):
os.system('rm -r /usr/share/fedit && rm /usr/share/applications/fedit.desktop')