Skip to content

Instantly share code, notes, and snippets.

View AssiNET's full-sized avatar
🎯
Focusing

Ivomir Assi AssiNET

🎯
Focusing
View GitHub Profile
@AssiNET
AssiNET / import-package-from parent.py
Created January 25, 2020 13:13 — forked from JungeAlexander/import-package-from parent.py
Import modules from parent folder in Python
# From http://stackoverflow.com/a/11158224
# Solution A - If the script importing the module is in a package
from .. import mymodule
# Solution B - If the script importing the module is not in a package
import os,sys,inspect
current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parent_dir = os.path.dirname(current_dir)
sys.path.insert(0, parent_dir)
@AssiNET
AssiNET / install-opencv-2.4.13-in-ubuntu.sh
Last active January 9, 2020 16:06 — forked from sedovolosiy/install-opencv-2.4.13-in-ubuntu.sh
Install opencv-2.4.13 in Ubuntu 16.04
## Install java8
sudo apt install -y openjdk-8-jre-headless -y
## Solve java error - Run following command from command prompt.
sudo sed -i 's/^assistive_technologies=/#&/' /etc/java-8-openjdk/accessibility.properties
# Or just comment out below line in /etc/java-8-openjdk/accessibility.properties
# assistive_technologies=org.GNOME.Accessibility.AtkWrapper
## Install other standart libs
sudo apt install wmctrl -y