Timeline for AssertionError: Invalid MXD filename
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 5, 2020 at 20:06 | comment | added | PolyGeo♦ | @Midavalo The way I do it probably stems from teaching so many non-programmers to code with ArcPy and Python. Python string formatting is so useful for constructing messages, SQL expressions paths, etc that I think it’s worth mastering it’s syntax early. | |
Jul 5, 2020 at 19:53 | comment | added | Midavalo♦ |
that makes sense. I guess I'm just in the (possibly bad) habit of always adding import os :)
|
|
Jul 5, 2020 at 19:34 | comment | added | PolyGeo♦ | @Midavalo it’s a personal preference. I don’t like importing an additional library when something’s so easy to do without. | |
Jul 5, 2020 at 19:10 | comment | added | Midavalo♦ |
Why not arcpy.mapping.MapDocument(os.path.join(wrkspc, 'NoMap.mxd')) ? I feel it's always better to let the system create the filepath rather than construct it myself, so just wondering
|
|
Jul 4, 2020 at 7:24 | history | edited | PolyGeo♦ | CC BY-SA 4.0 |
added 140 characters in body
|
Jul 4, 2020 at 7:17 | history | answered | PolyGeo♦ | CC BY-SA 4.0 |