Abdur-Rahmaan Janhangeer wrote at 2020-9-22 20:14 +0400:
>I have this main script:
>https://github.com/Abdur-rahmaanJ/shopyo/blob/dev/shopyo/__main__.py
>
>However, i get errors after package installation
>saying:
>ImportError: cannot import name 'shopyoapi' from 'shopyo'
It is right: `shopyyoapi`
In shopyo/shopyo (the same folder as __main__.py) there is a folder called
shopyoapi.
What i want is to import create_module from cmd.py from shopyoapi in
__main__.py but it does not work or more precisely i am looking how to make
it work!
Since this is not py2 i guess no init needed in shopyoapi
On 9/22/2020 11:54 PM, yehudis...@gmail.com wrote:
I installed Python 3.8.5 on Windows 10
When I click on a python file it launches the program but it closes
immediately.
When you run a program that way, the console/terminal window closes when
the program finishes executing.
--
Abdur-Rahmaan Janhangeer wrote at 2020-9-23 22:41 +0400:
>In shopyo/shopyo (the same folder as __main__.py) there is a folder called
>shopyoapi.
Not in the distribution:
...
shopyo-1.1.45/shopyo/
shopyo-1.1.45/shopyo/__init__.py
shopyo-1.1.45/shopyo/__main__.py
shopyo-1.1.45/shopyo/app.py
shopyo-1
Hello, I'm working on a script where I want to loop into folders somehow
recursively to get information but I want to limit the infos for the files on a
certain level of folders for example:
/home/user/Documents/folder1
/home/user/Documents/folder2
/home/user/Documents/folder3/folder1/file1
/hom
Thanks for the lead. Checking tomorrow!
If so i'll have to include other folders as well ...
Kind Regards,
Abdur-Rahmaan Janhangeer
https://www.github.com/Abdur-RahmaanJ
Mauritius
sent from gmail client on Android, that's why the signature is so ugly.
--
https://mail.python.org/mailman/listi
On 23Sep2020 13:24, pascal z wrote:
>Hello, I'm working on a script where I want to loop into folders somehow
>recursively to get information but I want to limit the infos for the files on
>a certain level of folders for example:
>
>/home/user/Documents/folder1
>/home/user/Documents/folder2
>/ho
Thanks, Chris, for the useful comments. Comments in line (with snipping of
unnecessary content):
> > some more variants which *don't* use tuple unpacking, on the theory
> that the coding patterns may be useful in
> > other cases where unpacking doesn't apply.
>
> When doesn't it apply? Can you el
It’s a py file with simple python code
From: [1]Igor Korot
Sent: Wednesday, September 23, 2020 12:39 AM
To: [2]yehudis...@gmail.com
Cc: [3]python-list@python.org
Subject: Re: Python 3.8.5 Not Launching
Hi,
On Tue, Sep 22, 2020 at 11:25 PM wrote:
>
On 9/23/20, yehudis...@gmail.com wrote:
>It’s a py file with simple python code
If .py files are associated with py.exe or python.exe, then running a
.py script either inherits or allocates a console and attaches to it.
The console closes automatically as soon as the last reference to it
clos
Please advise if the following is ok (i don't think it is)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
csv_contents = ""
output_file = '/home/user/Documents/csv/output3csv.csv'
Lpath = '/home/user/Documents/'
csv_contents = "FOLDER PATH;Size in Byte;Size in Kb;Size in Mb;Size in Gb
ok, i came up with
if os.path.isfile(path)
following
path = os.path.join(Lpath, f)
and it seems to be ok, no dupplicates or wrong sizes...
thanks
--
https://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo