Reading Relative File Paths in Python

Поделиться
HTML-код
  • Опубликовано: 11 ноя 2024

Комментарии • 38

  • @gandalfthegl
    @gandalfthegl 3 года назад +10

    Sometimes its difficult to find clear explanations to the fundamentals... this was perfect!

  • @corneliusjermainehightower7539
    @corneliusjermainehightower7539 4 года назад +4

    I’m new to working with Python but the way you worded everything may it so simple.

  • @cinthyabeneducci6795
    @cinthyabeneducci6795 Год назад +2

    Thx from Brazil! Your explanation was perfect.

  • @yoooouval8723
    @yoooouval8723 Год назад

    what a solid explanation!!! just what i was looking for ahead of my exam, explained warmly and concisely. thanks!

  • @jeffbronson3696
    @jeffbronson3696 4 года назад +4

    thank you. I couldn't find anything online for the syntax of this.

  • @SJ-vc2tz
    @SJ-vc2tz 3 года назад +2

    Perfect explanation albeit a little long for me personally. The video answered my questions regardless, so thank you!

  • @bret1779
    @bret1779 2 года назад +1

    Thanks man! One step closer to putting out my first program. I have one more bug before I can launch v1!

  • @juhotuho10
    @juhotuho10 Год назад +1

    thank you, simple and clean explanation

  • @joshkoeller7196
    @joshkoeller7196 2 года назад +1

    Thank you this video help me under this a lot better.

  • @mr.curious1714
    @mr.curious1714 2 года назад +2

    Perfect explation

  • @lofi-seven798
    @lofi-seven798 2 года назад +1

    This really helped me. Thank you

  • @atversky7114
    @atversky7114 2 года назад +1

    Excellent explanation.
    Subscribed

  • @jishanchowdhury4597
    @jishanchowdhury4597 Год назад +1

    bravo for the explaination

  • @arpitjoshi5399
    @arpitjoshi5399 4 года назад +1

    Amazing content
    Love from India :)

  • @chessmaster6407
    @chessmaster6407 3 года назад +1

    Great explanation

  • @madinaabdykarim6436
    @madinaabdykarim6436 2 года назад +1

    Thanks! It was useful for me

  • @entity5678
    @entity5678 2 года назад +1

    Very well explained!!

  • @lalalacy7691
    @lalalacy7691 2 года назад +1

    Thank you vey much!

  • @SirFancyPantsMcee
    @SirFancyPantsMcee 8 месяцев назад +1

    Thank you so much

  • @percytic
    @percytic Год назад +1

    Thank you!! 😄😄

  • @sf2998
    @sf2998 2 года назад

    good

  • @masssss4426
    @masssss4426 3 года назад

    Thanks buddy , you solved my problem 👍👍👍👍

  • @amal717
    @amal717 Год назад

    thank you , very clear

  • @oskarwallberg4566
    @oskarwallberg4566 2 года назад +1

    haahaha perfect ending 10/10

  • @neo78598
    @neo78598 3 года назад +1

    thanks a lot, great explanation!

  • @ADHAM840
    @ADHAM840 2 года назад +1

    Thank you so MuCh :)

  • @jongcheulkim7284
    @jongcheulkim7284 3 года назад +1

    Thank you.

  • @kjonathan7818
    @kjonathan7818 4 года назад +1

    very useful!!

  • @dentigerdo9498
    @dentigerdo9498 4 года назад +1

    volume is not louder..

  • @belix8801
    @belix8801 3 года назад

    Why i watch this at midnight

    • @belix8801
      @belix8801 3 года назад

      +: it was very helpful thanks!

    • @AMGaweda
      @AMGaweda  3 года назад

      Cause you wanna learn! 😁

  • @tom.shanghai
    @tom.shanghai 3 года назад

    only works on windows..

    • @AMGaweda
      @AMGaweda  3 года назад

      You may need to flip your backslashes for Mac/Linux systems; however the relative file paths should still work on other operating systems.

    • @tom.shanghai
      @tom.shanghai 3 года назад

      @@AMGaweda nope. it doesn't work

    • @AMGaweda
      @AMGaweda  3 года назад

      @@tom.shanghai If you use the "\" version, you'll need to use two (so, \\). This is because Python uses the \ character for special characters. Another issue may be you general file hierarchy - for example, if you are using something like Eclipse for Python, it has a slightly different filepath I think operates a few folders "above" your python code. If you did (on two lines) import os, print(os.listdir('.')), are you seeing your own Python file? and what if you did print(os.listdir(".."))?

  • @the_excelprofessor
    @the_excelprofessor Год назад

    Thanks bro