[Bf-extensions-cvs] [d00c454] master: Archimesh: Fix error in import for os module
Antonioya
noreply at git.blender.org
Wed Aug 10 13:37:21 CEST 2016
Commit: d00c454df31beb5506b7be37113a509072138ed0
Author: Antonioya
Date: Wed Aug 10 13:35:12 2016 +0200
Branches: master
https://developer.blender.org/rBAd00c454df31beb5506b7be37113a509072138ed0
Archimesh: Fix error in import for os module
===================================================================
M archimesh/achm_room_maker.py
===================================================================
diff --git a/archimesh/achm_room_maker.py b/archimesh/achm_room_maker.py
index c092a4e..33e9045 100644
--- a/archimesh/achm_room_maker.py
+++ b/archimesh/achm_room_maker.py
@@ -29,6 +29,7 @@ from math import sin, cos, fabs, radians
from mathutils import Vector
from datetime import datetime
from time import time
+from os import path
from bpy.types import Operator, PropertyGroup, Object, Panel
from bpy.props import StringProperty, FloatProperty, BoolProperty, IntProperty, FloatVectorProperty, \
CollectionProperty, EnumProperty
@@ -72,12 +73,12 @@ class AchmExportRoom(Operator, ExportHelper):
# -------------------------------
# extract path and filename
# -------------------------------
- (filepath, filename) = os.path.split(self.properties.filepath)
+ (filepath, filename) = path.split(self.properties.filepath)
print('Exporting %s' % filename)
# -------------------------------
# Open output file
# -------------------------------
- realpath = os.path.realpath(os.path.expanduser(self.properties.filepath))
+ realpath = path.realpath(path.expanduser(self.properties.filepath))
fout = open(realpath, 'w')
st = datetime.fromtimestamp(time()).strftime('%Y-%m-%d %H:%M:%S')
@@ -178,7 +179,7 @@ class AchmImportRoom(Operator, ImportHelper):
print("Importing:", self.properties.filepath)
# noinspection PyBroadException
try:
- realpath = os.path.realpath(os.path.expanduser(self.properties.filepath))
+ realpath = path.realpath(path.expanduser(self.properties.filepath))
finput = open(realpath)
line = finput.readline()
More information about the Bf-extensions-cvs
mailing list