load inkstitch virtualenv if available

pull/14/head
Lex Neva 2018-01-06 20:19:28 -05:00
rodzic b4d72df937
commit deb94db509
6 zmienionych plików z 16 dodań i 2 usunięć

3
.gitignore vendored
Wyświetl plik

@ -1,2 +1,3 @@
.*.swp
*.pyc
*.pyc
inkstitch-venv

Wyświetl plik

@ -10,10 +10,11 @@
# Embroidery file format documentation:
# http://www.achatina.de/sewing/main/TECHNICL.HTM
execfile('inkstitch_activate_venv.py')
import sys
import traceback
sys.path.append("/usr/share/inkscape/extensions")
import os
import subprocess
from copy import deepcopy
import time

Wyświetl plik

@ -1,6 +1,8 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
execfile('inkstitch_activate_venv.py')
import os
import sys
import json

Wyświetl plik

@ -1,3 +1,5 @@
execfile('inkstitch_activate_venv.py')
import sys
import os
import numpy

Wyświetl plik

@ -3,6 +3,8 @@
# Update embroidery parameters stored in XML attributes from old to new
# format.
execfile('inkstitch_activate_venv.py')
import sys
sys.path.append("/usr/share/inkscape/extensions")
import os

Wyświetl plik

@ -0,0 +1,6 @@
import os
if __name__ == "__main__":
if os.path.isdir("inkstitch-venv"):
activate = os.path.join("inkstitch-venv", "bin", "activate_this.py")
execfile(activate, dict(__file__=activate))