Parcourir la source

Create .web only after template selection (#2288)

Elijah Ahianyo il y a 1 an
Parent
commit
70ac284370
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      reflex/reflex.py

+ 6 - 6
reflex/reflex.py

@@ -80,12 +80,6 @@ def _init(
 
     prerequisites.check_latest_package_version(constants.Reflex.MODULE_NAME)
 
-    # Set up the web project.
-    prerequisites.initialize_frontend_dependencies()
-
-    # Migrate Pynecone projects to Reflex.
-    prerequisites.migrate_to_reflex()
-
     # Set up the app directory, only if the config doesn't exist.
     if not os.path.exists(constants.Config.FILE):
         if template is None:
@@ -96,6 +90,12 @@ def _init(
     else:
         telemetry.send("reinit")
 
+    # Set up the web project.
+    prerequisites.initialize_frontend_dependencies()
+
+    # Migrate Pynecone projects to Reflex.
+    prerequisites.migrate_to_reflex()
+
     # Initialize the .gitignore.
     prerequisites.initialize_gitignore()