8000 Issue Importing Utils When Working in m01b_intermediate · Issue #8 · chuckablack/python-52-weeks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Issue Importing Utils When Working in m01b_intermediate #8
Open
@JulioPDX

Description

@JulioPDX

I'm running Windows 10 and Python 3.8.2
In case you face a similar issue when starting the generators video. My path to util.create_utils could not be found. I had to add the path when executing the script. Please see below

12_generatory.py

import os, sys
currentdir = os.path.dirname(os.path.realpath(__file__))
parentdir = os.path.dirname(currentdir)
sys.path.append(parentdir)
from m01_basics.util.create_utils import (
    create_device,
    create_devices,
    create_devices_gen,
)
import time

if __name__ == "__main__":

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0