Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2016-08-09 14:45:46 +0300
committerAntonioya <blendergit@gmail.com>2016-08-09 14:46:07 +0300
commitf476cfdd3149e75d7ee40887230339b927d52da9 (patch)
tree80efa8209a2dd2397302ea2dd912750e7d9899e0 /archimesh/achm_tools.py
parent5828ecf0deca616fbc14cc48d94a9cbe15fd58fb (diff)
Archimesh: Cleanup - Replace generic import
Replace generic import by the list of used functions or types
Diffstat (limited to 'archimesh/achm_tools.py')
-rw-r--r--archimesh/achm_tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archimesh/achm_tools.py b/archimesh/achm_tools.py
index 7af503ef..3ae6618a 100644
--- a/archimesh/achm_tools.py
+++ b/archimesh/achm_tools.py
@@ -25,7 +25,7 @@
# ----------------------------------------------------------
# noinspection PyUnresolvedReferences
import bpy
-import os
+from os import path
# --------------------------------------------------------------------
@@ -857,7 +857,7 @@ def create_fabric_material(matname, replace, r, g, b, rv=0.8, gv=0.636, bv=0.315
# ===========================================================================
# Load image file.
- realpath = os.path.join(os.path.dirname(__file__), "images", "fabric_diffuse.png")
+ realpath = path.join(path.dirname(__file__), "images", "fabric_diffuse.png")
print("Loading: " + realpath)
try:
img = bpy.data.images.load(realpath)