mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Issue #934 symlink should not convert paths as_posix under windows.
This commit is contained in:
		
							parent
							
								
									294718244f
								
							
						
					
					
						commit
						564daf6dec
					
				|  | @ -46,7 +46,7 @@ def symlink(model_path, link_name, force): | ||||||
|     # Add workaround for Python 2 on Windows (see issue #909) |     # Add workaround for Python 2 on Windows (see issue #909) | ||||||
|     if util.is_python2() and util.is_windows(): |     if util.is_python2() and util.is_windows(): | ||||||
|         import subprocess |         import subprocess | ||||||
|         command = ['mklink', '/d', link_path.as_posix(), model_path.as_posix()] |         command = ['mklink', '/d', link_path, model_path] | ||||||
|         subprocess.call(command, shell=True) |         subprocess.call(command, shell=True) | ||||||
|     else: |     else: | ||||||
|         link_path.symlink_to(model_path) |         link_path.symlink_to(model_path) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user