Version info for formatter running for c:\Users\xxx\git\***:Ĭ:\Users\xxx\AppData\Local\pypoetry\Cache\virtualenvs\qp-k9BKPGhN-p圓.10\Scripts\python.exe -m black -versionĬWD formatter: c:\Users\xxx\git\***-deploy\src\qp Version info for formatter running for c:\Users\xxx\git\***\src\***_prod:Ĭ:\Users\xxx\AppData\Local\pypoetry\Cache\virtualenvs\***-4-3s-KfG-p圓.10\Scripts\python.exe -m black -version ![]() "workspace": "file:///c:/Users/xxx/git/***-ui",Ĭ:\Users\xxx\AppData\Local\pypoetry\Cache\virtualenvs\qupy0\Scripts\python.exe -m black -versionĬWD formatter: c:\Users\xxx\git\***\src\***_prod "c:\\Users\\xxx\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\cmd-batch-e6bUdhSH-p圓.10\\Scripts\\python.exe" "c:\\Users\\xxx\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\monitoring-WTCPidQC-p圓.10\\Scripts\\python.exe" "c:\\Users\\xxx\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\backfill-ci-6e_RSQmN-p圓.10\\Scripts\\python.exe" ![]() "c:\\Users\\xxx\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\qp-k9BKPGhN-p圓.10\\Scripts\\python.exe" Waiting for interpreter from python extension.Ĭ:\Users\xxx\scoop\persist\vscode\data\extensions\ms-python.black-formatter-2022.6.0\bundled\toolĬ:\Users\xxx\scoop\apps\python310\current\python310.zipĬ:\Users\xxx\scoop\apps\python310\current\DLLsĬ:\Users\xxx\scoop\apps\python310\current\libĬ:\Users\xxx\scoop\apps\python310\currentĬ:\Users\xxx\AppData\Local\pypoetry\Cache\virtualenvs\qupy0Ĭ:\Users\xxx\AppData\Local\pypoetry\Cache\virtualenvs\qupy0\lib\site-packagesĬ:\Users\xxx\AppData\Local\pypoetry\Cache\virtualenvs\qupy0\lib\site-packages\win32Ĭ:\Users\xxx\AppData\Local\pypoetry\Cache\virtualenvs\qupy0\lib\site-packages\win32\libĬ:\Users\xxx\AppData\Local\pypoetry\Cache\virtualenvs\qupy0\lib\site-packages\PythonwinĬ:\Users\xxx\scoop\persist\vscode\data\extensions\ms-python.black-formatter-2022.6.0\bundled\libs ![]() The problem is that for some reason the last backslash isn't automatically escaped so when I run the os.chdir(path) line I get errors."": When I run the first line in the interpreter I get out ('C:\\foo\bar','file_name.txt'). This enters the path name as something like "C:\foo\bar\file_name.txt". The way I've been getting the file path is by dragging from explorer to the command line. Here is what I've tried so far: path=os.path.split() However, I'm having problems changing directories. In my script I need python to change to the directory of the file and then perform some actions. My script takes in multiple file names that can be in any directory. I'm new to Python so I may be going about this completely wrong, but I'm having problems getting and changing to the directory of a file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |