chiark / gitweb /
Fix wrong indentation in create_lulzbot_profiles script
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 18 Aug 2015 16:14:25 +0000 (12:14 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 18 Aug 2015 16:14:25 +0000 (12:14 -0400)
scripts/create_lulzbot_profiles.py

index 30fb268ceff2c5697891e6a93ea8929e90baa7d9..3e74dddfce9f29c4e7f5f9ab85ab03f2041b9d4a 100755 (executable)
@@ -128,15 +128,15 @@ def create_machine_type(machine_type, path, dir):
 def main():
     if not os.path.exists(CURA_QUICKPRINT_DIR):
         print "Cura path is wrong"
-    return -1
+        return -1
 
     dirs = glob.glob(os.path.join(CURA_QUICKPRINT_DIR, PROFILES_DIR, "*"))
 
     for d in dirs:
         dir = os.path.basename(d)
-    if dir_map.has_key(dir):
-        for machine_type in dir_map[dir]:
-            create_machine_type(machine_type, d, dir)
+        if dir_map.has_key(dir):
+            for machine_type in dir_map[dir]:
+                create_machine_type(machine_type, d, dir)
 
 
 if __name__ == '__main__':