Skip to content

Commit

Permalink
allow loading module from working copy if osc is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak committed Oct 20, 2009
1 parent 661d927 commit 889a2d5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions fuse/fuseosc
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,20 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.

import osc
import osc.conf
import osc.core
import sys
import os
try:
import osc
import osc.conf
import osc.core
except:
# allow loading module from working copy if osc is not installed
sys.path.append(os.path.abspath(os.path.dirname(sys.argv[0]) + '/../osc'))
import osc
import osc.conf
import osc.core
import fuse
import stat
import os
import errno
import tempfile

Expand Down

0 comments on commit 889a2d5

Please sign in to comment.