cc-d/ieddit

Project issues when running on Mac

Closed this issue · 3 comments

stets commented

There are many os.system calls that assume a user is running debian. These should be changed to run on any system.

os.system('bash recreate_psql_db.sh')

cc-d commented
./ieddit.py:                    #os.system('python3 get_thumbnail.py %s "%s"' % (str(new_post.id), urllib.parse.quote(url)))
./ieddit.py:                    _thread.start_new_thread(os.system, ('python3 get_thumbnail.py %s "%s"' % (str(new_post.id), urllib.parse.quote(url)),))
./create_db.py:#os.system('rm -rf test.db')
./create_db.py:    os.system('bash recreate_psql_db.sh')

Here are the four places os.system is called. Achieving cross-system compatibility should be fairly easy. These calls can even be omitted completely, and nothing would be lost except the psql db script automatically running and thumbnails.

worked fine on mac today.. close?

cc-d commented

glad to hear. i'll tentatively close this for now