diff options
author | Antonioya <blendergit@gmail.com> | 2016-08-10 14:35:12 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2016-08-10 14:35:12 +0300 |
commit | d00c454df31beb5506b7be37113a509072138ed0 (patch) | |
tree | 541b70379b93d6f5345436782436758efabe5107 /archimesh | |
parent | 8c65dec46f66da797d5d740d0f2e236a1f45c8b5 (diff) |
Archimesh: Fix error in import for os module
Diffstat (limited to 'archimesh')
-rw-r--r-- | archimesh/achm_room_maker.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/archimesh/achm_room_maker.py b/archimesh/achm_room_maker.py index c092a4e3..33e90456 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() |