Python Forum
Folium map from another website
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Folium map from another website
#9
when you are in your IDE, the Current Working Directory is not always your source directory.
Thus when you save a file it may be saved in another directory (the CWD).
you can assure that you are in your source directory by importing os, then adding the following code
after all of your current code (bottom of script), replacing mycode with actual class of function name.
This will assure file will be saved in source directory when run from IDE.
if __name__ == '__main__':
    import os
    os.chdir(os.path.abspath(os.path.dirname(__file__)))
    mycode()
Reply


Messages In This Thread
Folium map from another website - by tantony - Oct-11-2019, 04:04 PM
RE: Folium map from another website - by tantony - Oct-11-2019, 05:16 PM
RE: Folium map from another website - by Larz60+ - Oct-11-2019, 09:08 PM
RE: Folium map from another website - by tantony - Oct-14-2019, 07:40 PM
RE: Folium map from another website - by Larz60+ - Oct-14-2019, 08:10 PM
RE: Folium map from another website - by tantony - Oct-14-2019, 08:13 PM
RE: Folium map from another website - by tantony - Oct-15-2019, 01:26 PM
RE: Folium map from another website - by tantony - Oct-15-2019, 06:18 PM
RE: Folium map from another website - by Larz60+ - Oct-15-2019, 07:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Folium: Conflict with Font Awesome Kit jgomes_eu 0 1,228 Apr-23-2022, 03:18 PM
Last Post: jgomes_eu
  Folium import error kashif_flavio 2 3,676 Dec-07-2020, 08:58 AM
Last Post: bowlofred
  Showing only one country in Folium tantony 3 5,738 Nov-01-2019, 03:32 PM
Last Post: nilamo
  Map with folium vandelouw 0 2,256 Jun-29-2018, 08:36 PM
Last Post: vandelouw

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020