NuriDerBurrito commited on
Commit
b244e4c
·
verified ·
1 Parent(s): c3d37dd

Update setup.py

Browse files
Files changed (1) hide show
  1. setup.py +3 -13
setup.py CHANGED
@@ -136,28 +136,18 @@ def main():
136
  download_helper_script(helper_script_path)
137
  inject_keys(civitai_key, hf_read_token, helper_script_path)
138
 
 
139
  print(f"{ARROW} Loading downloader functions...")
140
  get_ipython().run_line_magic('run', str(helper_script_path))
141
  print(f"{SUCCESS} Downloader is now ready!")
142
 
143
  setup_directory_structure(webui_path, model_path)
144
 
145
- # --- THE FIX: Export paths as environment variables ---
146
- print(f"{ARROW} Creating environment variables for paths...")
147
- os.environ['WEBUI_PATH'] = str(webui_path)
148
- os.environ['CKPT'] = str(model_path / 'Stable-diffusion')
149
- os.environ['VAE'] = str(model_path / 'VAE')
150
- os.environ['LORA'] = str(model_path / 'Lora')
151
- os.environ['EMB'] = str(model_path / 'embeddings')
152
- os.environ['CTRL'] = str(model_path / 'ControlNet')
153
- os.environ['AD'] = str(model_path / 'adetailer')
154
- print(f"{SUCCESS} Environment variables created!")
155
-
156
  print("\n" + "="*50)
157
  print(f"{SUCCESS} Setup complete!")
158
  print(f"{INFO} Your main folder is: {webui_path}")
159
- print(f"{INFO} You can now use the %download magic command and path variables directly.")
160
- print(f"{INFO} Example: %cd -q $CKPT")
161
  print("="*50)
162
 
163
 
 
136
  download_helper_script(helper_script_path)
137
  inject_keys(civitai_key, hf_read_token, helper_script_path)
138
 
139
+ # --- THE FIX: Execute the helper script to load its magic commands ---
140
  print(f"{ARROW} Loading downloader functions...")
141
  get_ipython().run_line_magic('run', str(helper_script_path))
142
  print(f"{SUCCESS} Downloader is now ready!")
143
 
144
  setup_directory_structure(webui_path, model_path)
145
 
 
 
 
 
 
 
 
 
 
 
 
146
  print("\n" + "="*50)
147
  print(f"{SUCCESS} Setup complete!")
148
  print(f"{INFO} Your main folder is: {webui_path}")
149
+ print(f"{INFO} You can now use the %download magic command directly in your cells.")
150
+ print(f"{INFO} Models will be saved in the 'models' subdirectory of your main folder.")
151
  print("="*50)
152
 
153