GithubHelp home page GithubHelp logo

Test Path in MS Windows. about mimesis HOT 3 CLOSED

lk-geimfari avatar lk-geimfari commented on May 11, 2024
Test Path in MS Windows.

from mimesis.

Comments (3)

nebesnytihohod avatar nebesnytihohod commented on May 11, 2024 3

Ooops... really...
Now checked, and it turned out that in CLI in Windows-10, -7, you can write path using the '\\', '/', '\', '//'.
I have always thought, and in the Microsoft document it is written, that we should use only '\'.

Then the question is removed. :-)

from mimesis.

nebesnytihohod avatar nebesnytihohod commented on May 11, 2024

@lk-geimfari, after you fix the problem with the import Path, which we discussed, now

from elizabeth import Path

run correctly.
I tested feature of generating sys.path.
Result:

Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from elizabeth import Path
>>> path = Path()
>>> path.root
'С:\\'
>>> path.home
'С:\\Users\\'
>>> path.user(gender='female')
'С:\\Users\\Jeanice'
>>> path.user(gender='male')
'С:\\Users\\Dudley'
>>> path.users_folder(user_gender='male')
'С:\\Users\\Jerold\\Development'
>>> path.dev_dir(user_gender='female')
'С:\\Users\\Jack\\Development\\AutoIt'
>>> path.project_dir(user_gender='female')
'С:\\Users\\Alla\\Development\\Python\\insidious'

For Windows one of the backslash is superfluous.
I'll try to fix it.

from mimesis.

lk-geimfari avatar lk-geimfari commented on May 11, 2024

@nebesnytihohod I thought that this format works with Windows. Are you sure that does not work?

from mimesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.