Timeline for Invalid parameters using ArcPy dissolve and statistics_fields
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 6, 2015 at 1:38 | comment | added | yanes |
@Paul I agree, I was just giving a quick work around. What I usually do is set my 'env.workspace' to the folder that I want my results to go. And reference any input data by either giving a full path or setting other generic workspaces. like input_ws = "path_to_folder"
|
|
Dec 6, 2015 at 1:35 | comment | added | yanes | Sorry.. @PolyGeo is right it is either double back slash("\\") or a single forward slash ("/") with an r in front of the path. For example: `env.workspace = r"H:/Data". I've edited the answer to reflect this. | |
Dec 6, 2015 at 1:32 | history | edited | yanes | CC BY-SA 3.0 |
Updated answer
|
Dec 6, 2015 at 0:20 | comment | added | Anthony To | Thanks for the answer Yang. The ArcPy documentation uses the single forward slash notation, and I've used that with all my other scripts without any issues. But I tried your notation, still not working | |
Dec 6, 2015 at 0:10 | comment | added | PolyGeo♦ |
Are you sure that double forward slashes ("//") will not itself cause a problem? I know double backslashes is fine ("\\"), as well as single forward slash ("/") and lastly single backslashes ("\") but only with an r before the string.
|
|
Dec 5, 2015 at 23:30 | comment | added | Paul |
os.path.join() is your friend. Though, it kind of defeats the purpose of setting env.workspace if you are just going to concatenate it anyways....
|
|
Dec 5, 2015 at 23:24 | comment | added | yanes | This is assuming the 'Analysis' folder is in 'H:/Data' | |
Dec 5, 2015 at 23:20 | history | answered | yanes | CC BY-SA 3.0 |