darxtrix / darxtrix/ptop

Updater doesn't consistently work

Open
#58 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
582
Forks
44
PR merge metrics
No merged PRs in 30d

Description

I don't have python2 installed so calling `python` in my terminal returns `command not found`. To start python, I need to call `python3`. I needed to change
```python
update_success_status |= os.system('cd /tmp/{0}/ && sudo python setup.py install'.format(source_folder))
```
to this:
```python
update_success_status |= os.system('cd /tmp/{0}/ && sudo python3 setup.py install'.format(source_folder))
```
to get the program to update correctly. (these edits are on main.py)

Possible solution:
use `sys.version` to get the version of python that is currently running and use the proper command

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.