Browse Source

Bugfix in lefactory

Yann Weber 8 years ago
parent
commit
61ccc04772
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      leobject/lefactory.py

+ 1
- 1
leobject/lefactory.py View File

@@ -24,7 +24,7 @@ class LeFactory(object):
24 24
     @staticmethod
25 25
     def leobj_from_name(name):
26 26
         if LeFactory.modname is None:
27
-            modname = 'leobject.' + LeFactory.output_file.split('.')[1]
27
+            modname = 'leobject.' + LeFactory.output_file.split('.')[0]
28 28
         else:
29 29
             modname = LeFactory.modname
30 30
         mod = importlib.import_module(modname)

Loading…
Cancel
Save