Comments (2)
The problem lies with dealing with a trailing backslash (if it exists):
>>> import os
>>> blah='/home/erico/Projetos/scc-tools/tests/scc_exogelvm11219_210311_0856/'
>>> blah.split(os.sep)[-1]
''
>>> blah.rstrip(os.sep).split(os.sep)[-1]
'scc_exogelvm11219_210311_0856'
We need to rstrip () the OS path separators from the end of the string, or else the split() will return empty.
from scc-tools.
Thanks! Can confirm this is now fixed!
from scc-tools.
Related Issues (20)
- Treat duplicate packages in PackageHub HOT 6
- Older version returned instead of the latest one 😒 HOT 2
- error comparing: 2.35-7.11.1 and 2.35.1-7.18.1 HOT 2
- Avoid generating reports for SLES 11 servers HOT 1
- Treat HTTP error 429 properly HOT 1
- script taking too long to gather results HOT 18
- SLES for SAP identification issues HOT 4
- Implement a --version parameter HOT 3
- Please document the usage of vercheck-cache.py and fix "ModuleNotFoundError: No module named 'platformdirs'" HOT 2
- vercheck-cache hitting 100% CPU when threads are idle HOT 1
- Use ThreadPoolExecutor for better thread management HOT 1
- Convert the CacheManager class to use SQLite
- Handling of SUSE Manager Clients RPMs HOT 7
- Create a separate report for PTF packages HOT 1
- Bulk of messages HOT 4
- Option -a is undocumented HOT 2
- Start failed after "Downloading data for deleted images on amazon" HOT 7
- Add CLI to query public image database
- Single search is not updating the package cache
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scc-tools.