Jorl17 / sharelatex-git-integration-unofficial

Easily track your ShareLaTeX changes using git. One simple command to rule them all!
GNU General Public License v2.0
68 stars 13 forks source link

Script is not executed using Python #3

Closed remidefleurian closed 6 years ago

remidefleurian commented 6 years ago

Hi there! I followed the very clear instructions to install the script, and everything worked perfectly, except that using the command sharelatex-git seemed to open the script with a different interpreter than Python.

For instance, sharelatex-git - h did not work, but python sharelatex-git.py -h worked perfectly. I managed to solve the issue by swapping the first two lines of the Python script, therefore making sure that #!/usr/bin/env python3 was the first line in the code.

Just thought I'd share this. Let me know if you'd like any more details!

Jorl17 commented 6 years ago

Fixed by https://github.com/Jorl17/sharelatex-git-integration-unofficial/commit/51398dcd98a784af3e212f6222bac2682759b37d, I believe :)