Skip to content

Weird problem with importing going_modular #678

Answered by mrdbourke
mfarhadirad asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mfarhadirad ,

Great question!

The . can be a little confusing.

Let me explain.

The . is short for "current directory".

For example, if I'm in the directory daniel/ and I write ., it means I'm referring to daniel/.

In the line:

!mv pytorch-deep-learning/going_modular .

It is saying "move the contents of going_modular to here".

As in, if the directory is laid out like:

daniel/
    pytorch-deep-learning/
        going_modular/
            file1.py

And I'm currently in daniel/, it will become:

daniel/
    file.py
    pytorch-deep-learning/
        going_modular/

Another way of thinking of it is:

!mv pytorch-deep-learning/going_modular .

Stands for:

!mv source_files destination_files

S…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mfarhadirad
Comment options

@mrdbourke
Comment options

@injamul3798
Comment options

Answer selected by mrdbourke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #667 on October 12, 2023 04:17.