Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Make bin/rho path-independent (#32)
Browse files Browse the repository at this point in the history
Find the source directory based on sys.argv[0], rather than a
hardcoded path from a specific developer's machine. Fixes issues/31.
  • Loading branch information
noahl authored and chambridge committed Jun 27, 2017
1 parent 109cc24 commit 58293a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/rho
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@
#

import gettext
import os
import sys

sys.path.insert(0, '/home/kbattula/devel/rho2/src')
base_rho_directory = os.path.abspath(
os.path.normpath(
os.path.join(
os.path.dirname(sys.argv[0]), '..')))
sys.path.insert(0, os.path.join(base_rho_directory, 'src'))

from rho.cli import CLI

Expand Down

0 comments on commit 58293a4

Please sign in to comment.