Skip to content

Commit

Permalink
Upgrade the helper script codelite_open_helper.py to use python 3
Browse files Browse the repository at this point in the history
The script itself is now compatible with either python 2 or 3, but
change the #! to call python3 which is more future-proof.
  • Loading branch information
dghart authored and dghart committed Mar 6, 2020
1 parent a925709 commit 8c17494
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions codelite_open_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/python3
#
# Helper to open files in codelite, so we don't need to fire up an expensive codelite process
#
Expand All @@ -12,7 +12,7 @@
import sys

if len(sys.argv) == 1:
print "usage: codelite_open_helper <filename> ..."
print("usage: codelite_open_helper <filename> ...")
exit(1)

filenames_to_open = sys.argv[1:]
Expand Down Expand Up @@ -46,7 +46,7 @@
found_codelite = True
pidof_subprocess.terminate()
if found_codelite:
print "Found running codelite process, but could not talk to it, no idea what is wrong"
print("Found running codelite process, but could not talk to it, no idea what is wrong")
exit(1)

# Since we didn't find it, let's just fire up codelite and open the files
Expand Down

0 comments on commit 8c17494

Please sign in to comment.