update script

This commit is contained in:
sinseman44
2020-11-15 09:39:29 +00:00
parent 48e5fe2f39
commit eb920e789b
2 changed files with 6 additions and 6 deletions

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env python3
import os
import os, sys
import piplot.main
if __name__ == "__main__":
if os.getuid() != 0:
print("You need root permissions to do this ...")
exit(1)
sys.exit(1)
piplot.main.main()

View File

@@ -10,7 +10,6 @@ class CustomInstallCommand(install):
create_service_script_path = os.path.join(current_dir_path, 'install_scripts', 'create_service.sh')
subprocess.check_output([create_service_script_path])
with open("README.md", "r") as fh:
long_description = fh.read()
@@ -23,7 +22,10 @@ setup(
long_description="Control PiPlot2D system",
long_description_content_type="text/markdown",
url="https://github.com/sinseman44/PiPlot2D",
#packages=setuptools.find_packages(where='piplot'),
scripts=['piplotter'],
cmdclass={
'install': CustomInstallCommand
},
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
@@ -39,6 +41,4 @@ setup(
"https://github.com/sinseman44/PyCNC/archive/v2.0.0.zip#egg=pycnc-2.0.0",
],
python_requires='>=3.6',
scripts=['piplotter'],
cmdclass={'install': CustomInstallCommand}
)