diff options
author | TingPing <tingping@tingping.se> | 2013-12-29 19:41:10 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-01-01 14:11:11 -0500 |
commit | 8768ba76f8b6aa760822e1c83ba82477ae601314 (patch) | |
tree | e96047211ddc4d05578ed9bbe2cfc17e593e6abc /src/redshift-gtk/redshift-gtk.in | |
parent | Merge pull request #19 from TingPing/patch-1 (diff) | |
download | redshift-ng-8768ba76f8b6aa760822e1c83ba82477ae601314.tar.gz redshift-ng-8768ba76f8b6aa760822e1c83ba82477ae601314.tar.bz2 redshift-ng-8768ba76f8b6aa760822e1c83ba82477ae601314.tar.xz |
Port redshift-gtk to Python3
Python 2 is no longer supported
Diffstat (limited to '')
-rw-r--r-- | src/redshift-gtk/redshift-gtk.in (renamed from src/redshift-gtk/redshift-gtk) | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/redshift-gtk/redshift-gtk b/src/redshift-gtk/redshift-gtk.in index 3ec3010..ba6e1ac 100644 --- a/src/redshift-gtk/redshift-gtk +++ b/src/redshift-gtk/redshift-gtk.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # redshift-gtk -- GTK+ Redshift launcher script # This file is part of Redshift. @@ -17,6 +17,10 @@ # Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com> +import sys + +# Some non-standard install paths may need to be added +sys.path.append('@pythondir@') if __name__ == '__main__': from redshift_gtk.statusicon import run |