mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 01:46:13 +01:00
allow loading module from working copy if osc is not installed
This commit is contained in:
parent
661d927d38
commit
889a2d5710
15
fuse/fuseosc
15
fuse/fuseosc
@ -23,13 +23,20 @@
|
|||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
# OTHER DEALINGS IN THE SOFTWARE.
|
# OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
import osc
|
|
||||||
import osc.conf
|
|
||||||
import osc.core
|
|
||||||
import sys
|
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 fuse
|
||||||
import stat
|
import stat
|
||||||
import os
|
|
||||||
import errno
|
import errno
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user