1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 01:16:14 +01:00

allow loading module from working copy if osc is not installed

This commit is contained in:
Pavol Rusnak 2009-10-20 21:02:21 +00:00
parent 661d927d38
commit 889a2d5710

View File

@ -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