Skip to content
Browse files

rearrange lbugz and remove extra lines

  • Loading branch information...
1 parent c34e6be commit 3721173a29f07e09635f19053ed3a1155f93c013 @williamh committed Jun 2, 2012
Showing with 2 additions and 7 deletions.
  1. +2 −7 lbugz
View
9 lbugz
@@ -15,19 +15,14 @@ import subprocess
import sys
args = sys.argv
-
path = os.path.normpath(os.path.dirname(os.path.realpath(__file__)))
-# path = os.path.normpath(os.path.join(path, '.'))
-print path
-
pkg = os.path.join(path, 'bugz')
script = os.path.join(path, 'bin/bugz')
-if os.path.exists(pkg) and os.path.exists(script):
+if os.path.exists(pkg) and os.path.exists(script):
+ args[0] = script
if 'PYTHONPATH' in os.environ.keys():
os.environ['PYTHONPATH'] = path + ':' + os.environ['PYTHONPATH']
else:
os.environ['PYTHONPATH'] = path + ':'
-
- args[0] = script
subprocess.call(args)

0 comments on commit 3721173

Please sign in to comment.
Something went wrong with that request. Please try again.