Permalink
Browse files

Merge pull request #44 from Nelsonlittle/shebang_replacing

replace python shebang to choose environments python executable
  • Loading branch information...
novoid committed Jan 12, 2018
2 parents 97ccb81 + db100d2 commit b7951faeecd1d064197c9ce01d26c65114ac07bb
Showing with 7 additions and 7 deletions.
  1. +1 −1 bin/memacs_battery.py
  2. +1 −1 bin/memacs_lastfm.py
  3. +1 −1 bin/memacs_whatsapp.py
  4. +2 −2 docs/memacs_twitter.org
  5. +1 −1 memacs/battery.py
  6. +1 −1 memacs/lastfm.py
View
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from memacs.battery import Battery
View
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from memacs.lastfm import LastFM
View
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from memacs.whatsapp import WhatsApp
View
@@ -25,7 +25,7 @@ and write to your Twitter account.
You need to obtain an Authorization Url. Create and run the following program:
-#+begin_src python :shebang #!/usr/bin/python2 :tangle ./twitter_get_auth.py :exports none :noweb yes
+#+begin_src python :shebang #!/usr/bin/env python2 :tangle ./twitter_get_auth.py :exports none :noweb yes
from twython import Twython
APP_KEY = 'Your Consumer Key'
APP_SECRET = 'Your Consumer Secret'
@@ -54,7 +54,7 @@ obtain your Final Tokens.
Finally enter the data you got from running the program twitter_get_auth.py into the
program below to get your final tokens.
-#+begin_src python :shebang #!/usr/bin/python2 :tangle ./twitter_get_final_tokens.py :exports none :noweb yes
+#+begin_src python :shebang #!/usr/bin/env python2 :tangle ./twitter_get_final_tokens.py :exports none :noweb yes
from twython import Twython
APP_KEY = 'Your Consumer Key'
APP_SECRET = 'Your Consumer Secret'
View
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import argparse
View
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import time

0 comments on commit b7951fa

Please sign in to comment.